ci: add merge and lock workflows
This commit is contained in:
15
.github/workflows/lock.yml
vendored
Normal file
15
.github/workflows/lock.yml
vendored
Normal 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
17
.github/workflows/merge.yml
vendored
Normal 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
|
Reference in New Issue
Block a user