Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some GitHub templates #106

Merged
merged 1 commit into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Bug Report
url: https://github.com/mono/SkiaSharp/issues
about: Create a report in the SkiaSharp repository.
- name: Feature Request
url: https://github.com/mono/SkiaSharp/issues
about: Suggest an idea in the SkiaSharp repository.
- name: Questions and/or Discussions
url: https://github.com/mono/SkiaSharp/discussions
about: Please ask and answer questions in the SkiaSharp repository.
51 changes: 51 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
**Description of Change**

<!--
Describe your changes here.
-->

**SkiaSharp Issue**

<!--
Provide links to SkiaSharp issues here.
Ensure that a GitHub issue was created for your feature or bug fix before sending PR.
-->

Related to https://github.com/mono/SkiaSharp/issues/<issue-number>

**API Changes**

None.

<!--
List all API changes here (or just put None), example:

Added:
- `void skobject_method_name()`

Changed:
- `void skobject_old_method_name()` => `void skobject_new_method_name()`
-->

**Behavioral Changes**

None.

<!--
Describe any non-bug related behavioral changes that may change how users app behaves
when upgrading to this version of the codebase.
-->

**Required SkiaSharp PR**

Requires https://github.com/mono/SkiaSharp/pull/<pr-number>

<!--
Replace this with the full URL to the skia PR.
-->

**PR Checklist**

- [ ] Rebased on top of `skiasharp`` at time of PR
- [ ] Changes adhere to coding standard
- [ ] Updated documentation
33 changes: 33 additions & 0 deletions .github/workflows/backport.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Backport

on:
pull_request_target:
types:
- closed
- labeled

jobs:
backport:
name: Backport
runs-on: ubuntu-latest
# Only react to merged PRs for security reasons.
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
if: >
github.event.pull_request.merged
&& (
github.event.action == 'closed'
|| (
github.event.action == 'labeled'
&& contains(github.event.label.name, 'backport')
)
)
steps:
- uses: tibdex/backport@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
body_template: >
Backport of <%= mergeCommitSha %> from #<%= number %>.
head_template: "backport/pr-<%= number %>-to-<%= base %>"
label_pattern: "^backport/(?<base>([^ ]+))$"
labels_template: "[ \"backport\" ]"
title_template: "[<%= base %>] <%= title %>"