Skip to content

Commit

Permalink
Merge pull request Pycord-Development#292 from BobDotCom/master
Browse files Browse the repository at this point in the history
Add review bypass for core developers
  • Loading branch information
BobDotCom authored Oct 20, 2021
2 parents 9fa77a3 + 50ab694 commit c56105a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/bypass-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
pull_request:
types: [labeled]

name: "Bypass review"


jobs:
automerge:
runs-on: ubuntu-latest
steps:
- name: Check PR label
if: github.event.label.name == 'bypass-review'
uses: "lannonbr/repo-permission-check-action@2.0.0"
with:
permission: "write"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Merge
if: ${{ success() }}
uses: juliangruber/merge-pull-request-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.pull_request.number }}
method: merge

- name: Cancel
if: ${{ failure() }}
run:
echo Not merging. Cancelled.

0 comments on commit c56105a

Please sign in to comment.