Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithSwastik committed Oct 21, 2021
2 parents 2cb2b08 + c56105a commit 96ed955
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
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.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pycord
==========

.. image:: https://img.shields.io/discord/881207955029110855?color=5865f2&label=Discord&logo=discord
.. image:: https://discord.com/api/guilds/881207955029110855/embed.png
:target: https://discord.gg/dK2qkEJ37N
:alt: Discord server invite
.. image:: https://img.shields.io/pypi/v/py-cord.svg
Expand Down

0 comments on commit 96ed955

Please sign in to comment.