Skip to content

Commit

Permalink
ci: Add automerge job [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasBoll committed Sep 22, 2021
1 parent 86c7222 commit 3f90a25
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/enable-automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Enable Automerge

on:
pull_request_target:
types: [ edited, labeled ]

jobs:
main:
if: contains(github.event.pull_request.labels.*.name, 'automerge')
runs-on: ubuntu-latest

steps:
- name: Enable Automerge
uses: Workday/canvas-kit-actions/enable-automerge@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/new_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
with:
project: Backlog
column: Open
repo-token: ${{ secrets.GH_RW_TOKEN }}
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3f90a25

Please sign in to comment.