Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itsvs/no-merge-action
Action that blocks merging diffs containing a certain word.
https://github.com/itsvs/no-merge-action
Last synced: 3 months ago
JSON representation
Action that blocks merging diffs containing a certain word.
- Host: GitHub
- URL: https://github.com/itsvs/no-merge-action
- Owner: itsvs
- License: mit
- Created: 2021-01-02T23:02:07.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-05T13:14:50.000Z (about 2 years ago)
- Last Synced: 2024-03-15T08:22:51.956Z (10 months ago)
- Language: JavaScript
- Size: 27.9 MB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/itsvs/no-commit-action/issues)!
## License
This is a modification of the original template, and is released under the MIT license.