mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-05 14:23:53 +01:00
Enable auto merge for allowed bots
This commit is contained in:
parent
b8f4ffe6e6
commit
78efe472a3
1 changed files with 14 additions and 0 deletions
14
.github/workflows/test.yaml
vendored
14
.github/workflows/test.yaml
vendored
|
@ -40,3 +40,17 @@ jobs:
|
|||
working-directory: ./src/
|
||||
- name: Check pre-commit
|
||||
run: pre-commit run --all-files
|
||||
auto_merge:
|
||||
name: Auto merge
|
||||
runs-on: ubuntu-latest
|
||||
needs: tests
|
||||
if: >-
|
||||
github.event.pull_request
|
||||
&& github.event.pull_request.merged == false
|
||||
&& (
|
||||
github.event.pull_request.user.login == "crocmagnon-pr[bot]"
|
||||
|| github.event.pull_request.user.login == "pre-commit-ci[bot]"
|
||||
)
|
||||
steps:
|
||||
- name: Auto merge
|
||||
run: gh pr merge ${{github.event.pull_request.number}} --delete-branch --rebase
|
||||
|
|
Loading…
Reference in a new issue