Skip to content

Commit

Permalink
Add a github action to merge approved PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
accorvin committed Aug 3, 2023
1 parent 30a32ca commit d48fa75
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/automerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Automerge
on:
pull_request_review:
types:
- submitted

jobs:
automerge:
runs-on: ubuntu-latest
steps:
- uses: reitermarkus/automerge@v2
with:
token: ${{ secrets.AUTOMERGE_GITHUB_TOKEN }}
merge-method: rebase
do-not-merge-labels: never-merge
required-labels: approved
pull-request: ${{ github.event.inputs.pull-request }}
review: ${{ github.event.inputs.review }}

0 comments on commit d48fa75

Please sign in to comment.