generated from edp-dx/java-maven-java11
-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (30 loc) · 954 Bytes
/
automerge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Auto approve
on:
pull_request_target:
issue_comment:
types: [created]
jobs:
auto-approve-pr:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request_target'
permissions: write-all
steps:
- uses: actions/checkout@v4
with:
token: ${{ github.token }}
- uses: hmarr/auto-approve-action@v4
with:
github-token: "${{ github.token }}"
- name: Add label
run: gh pr edit ${{ github.event.pull_request.number }} --add-label automerge
env:
GH_TOKEN: ${{ github.token }}
- uses: pascalgn/[email protected]
env:
GITHUB_TOKEN: "${{ github.token }}"
MERGE_LABELS: "automerge"
MERGE_RETRIES: "60"
MERGE_RETRY_SLEEP: "10000"
MERGE_METHOD: "squash"
MERGE_DELETE_BRANCH: "true"
MERGE_COMMIT_MESSAGE: "{pullRequest.title} \n\n workflowId: {pullRequest.head.ref}"