Skip to content

Commit

Permalink
Add some GitHub templates (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow authored Aug 25, 2023
1 parent 781c823 commit 94b3dbf
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 0 deletions.
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 %>"

0 comments on commit 94b3dbf

Please sign in to comment.