We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a50ceb commit d6024faCopy full SHA for d6024fa
.github/workflows/pr-auto-merge.yml
@@ -0,0 +1,23 @@
1
+name: "Automatically enable auto-merge on PRs"
2
+
3
+on:
4
+ pull_request_target:
5
+ types:
6
+ - opened
7
+ - ready_for_review
8
+ branches:
9
+ - main
10
11
+jobs:
12
+ enable-automerge:
13
+ if: github.event.pull_request.draft == false
14
+ permissions:
15
+ pull-requests: write
16
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - name: Enable auto-merge for the PR
20
+ run: gh pr merge "$PR_URL" --auto --squash
21
+ env:
22
+ GH_TOKEN: ${{ secrets.PR_AUTO_UPDATE_TOKEN }}
23
+ PR_URL: ${{ github.event.pull_request.html_url }}
0 commit comments