We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aadbf4 commit 81b4b23Copy full SHA for 81b4b23
1 file changed
.github/workflows/merge.yml
@@ -0,0 +1,29 @@
1
+name: Auto Merge
2
+
3
+on:
4
+ pull_request:
5
6
+permissions: write-all
7
8
+jobs:
9
+ automerge:
10
+ if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'github-actions[bot]' }}
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: automerge
14
+ uses: actions/github-script@v9.0.0
15
+ with:
16
+ script: |
17
+ github.rest.pulls.createReview({
18
+ owner: context.payload.repository.owner.login,
19
+ repo: context.payload.repository.name,
20
+ pull_number: context.payload.pull_request.number,
21
+ event: 'APPROVE'
22
+ })
23
+ github.rest.pulls.merge({
24
25
26
27
+ merge_method: "rebase",
28
29
+ github-token: ${{ github.token }}
0 commit comments