Skip to content

Commit f62d51e

Browse files
Merge pull request #158 from getsentry/automerge-craft
auto approve and auto merge PRs from craft
2 parents e58a234 + cc1cb60 commit f62d51e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/auto-merge.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: auto merge
2+
on:
3+
pull_request_target:
4+
5+
jobs:
6+
auto-merge:
7+
if: github.actor == 'getsentry-bot' && startsWith(github.head_ref, 'craft-')
8+
runs-on: ubuntu-latest
9+
steps:
10+
- run: |
11+
set -x
12+
gh pr review --approve --repo "$GITHUB_REPOSITORY" "$PR"
13+
gh pr merge --repo "$GITHUB_REPOSITORY" "$PR"
14+
env:
15+
PR: ${{ github.event.number }}

0 commit comments

Comments
 (0)