ci: add merge and lock workflows

This commit is contained in:
2023-07-29 09:16:05 +02:00
parent 39000b32f9
commit 54dabf7a56
2 changed files with 32 additions and 0 deletions

15
.github/workflows/lock.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: lock pull-request
on:
pull_request:
types:
- closed
jobs:
lock:
runs-on: ubuntu-latest
steps:
- name: lock pull request
uses: sudo-bot/action-pull-request-lock@v1.0.5
with:
github-token: ${{ secrets.SUDO_BOT_TOKEN }}
number: ${{ github.event.pull_request.number }}
lock-reason: resolved

17
.github/workflows/merge.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: merge pull-request
on:
pull_request:
types:
- labeled
jobs:
merge:
runs-on: ubuntu-latest
steps:
- name: merge pull request
uses: sudo-bot/action-pull-request-merge@v1.1.1
with:
github-token: ${{ secrets.SUDO_BOT_TOKEN }}
number: ${{ github.event.pull_request.number }}
allowed-usernames-regex: ^williamdes$
filter-label: merge-it
merge-method: fast-forward