Skip to content

Commit

Permalink
add auto-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
hanachiru committed Aug 18, 2024
1 parent da2ae68 commit dd7ec7e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Steward Auto Merge
on:
pull_request:
branches:
- main
permissions:
pull-requests: write
contents: write
jobs:
auto-merge:
runs-on: ubuntu-latest
if:
${{ startsWith(github.head_ref, 'auto/') && github.actor == 'github-actions[bot]' }}
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Approve PR
run: gh pr review "$PR_URL" --approve
- name: Enable auto-merge for Steward PRs
run: gh pr merge --merge --auto "$PR_URL"

0 comments on commit dd7ec7e

Please sign in to comment.