Skip to content

Commit

Permalink
Merge pull request #40800 from m-kuhn/backported-label
Browse files Browse the repository at this point in the history
Add backported label after a successful backport
  • Loading branch information
m-kuhn committed Dec 30, 2020
2 parents 48d587e + 4435aeb commit e254334
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/label-backported.yml
@@ -0,0 +1,2 @@
backported:
- '**'
8 changes: 8 additions & 0 deletions .github/workflows/backport.yml
Expand Up @@ -11,10 +11,18 @@ jobs:
name: Backport
steps:
- name: Backport Bot
id: backport
if: github.event.pull_request.merged && ( ( github.event.action == 'closed' && contains( join( github.event.pull_request.labels.*.name ), 'backport') ) || contains( github.event.label.name, 'backport' ) )
uses: Gaurav0/backport@v1.0.26
with:
bot_username: qgis-bot
bot_token: ddbdec32940df79f1adf2369b4b10f10b5a66f65
bot_token_key: a1b2c3d47311f8e29e204f85a81b4df4a44e252c
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Backported Label
if: steps.backport.conclusion == 'success'
uses: actions/labeler@main
with:
configuration-path: .github/label-backported.yml
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit e254334

Please sign in to comment.