Skip to content

Commit c56105a

Browse files
authored
Merge pull request #292 from BobDotCom/master
Add review bypass for core developers
2 parents 9fa77a3 + 50ab694 commit c56105a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/bypass-review.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on:
2+
pull_request:
3+
types: [labeled]
4+
5+
name: "Bypass review"
6+
7+
8+
jobs:
9+
automerge:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check PR label
13+
if: github.event.label.name == 'bypass-review'
14+
uses: "lannonbr/[email protected]"
15+
with:
16+
permission: "write"
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
20+
- name: Merge
21+
if: ${{ success() }}
22+
uses: juliangruber/merge-pull-request-action@v1
23+
with:
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
number: ${{ github.event.pull_request.number }}
26+
method: merge
27+
28+
- name: Cancel
29+
if: ${{ failure() }}
30+
run:
31+
echo Not merging. Cancelled.

0 commit comments

Comments
 (0)