File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 8
8
auto-merge :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
+ - name : Label PR
12
+ if : github.event.pull_request.title == '[pre-commit.ci] pre-commit autoupdate'
13
+ run : |
14
+ curl -X POST \
15
+ -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
16
+ -H "Accept: application/vnd.github.v3+json" \
17
+ https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/labels \
18
+ -d '{"labels":["automerge"]}'
11
19
- name : Automatic Merge
12
20
13
- if : github.event.pull_request.title == '[pre-commit.ci] pre-commit autoupdate'
14
- with :
21
+ env :
15
22
GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
16
- MERGE_LABELS : " "
17
- MERGE_REMOVE_LABELS : " auto-merge"
18
- MERGE_METHOD : " squash"
19
- MERGE_COMMIT_MESSAGE : " pull-request-title"
20
- MERGE_FORKS : false
21
- MERGE_RETRIES : " 6"
22
- MERGE_RETRY_SLEEP : " 10000"
23
- MERGE_DELETE_BRANCH : true
You can’t perform that action at this time.
0 commit comments