Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 643 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 643 Bytes

Block Merge if Keyword in PR Diff

Setup

Add a file to .github/workflows with similar contents to:

name: "Block @nocommit Merges"
on: [pull_request]

jobs:
  check_pr:
    runs-on: ubuntu-latest
    steps:
    - name: Check for @nocommit
      uses: itsvs/no-merge-action@releases/v0.2
      with:
        github-token: ${{github.token}}
        keyword: "@nocommit"

The keyword variable is the string that we don't want the PR to include.

Contributing

Use issues!

License

This is a modification of the original template, and is released under the MIT license.