https://github.com/wip/action
The WIP GitHub Action
https://github.com/wip/action
Last synced: 9 months ago
JSON representation
The WIP GitHub Action
- Host: GitHub
- URL: https://github.com/wip/action
- Owner: wip
- License: apache-2.0
- Created: 2018-10-16T17:36:46.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-16T21:21:34.000Z (over 1 year ago)
- Last Synced: 2025-03-31T07:09:33.500Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 482 KB
- Stars: 122
- Watchers: 2
- Forks: 28
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-list - action
README
DO NOT MERGE – as an action.
This GitHub Action sets a pull request status to pending if the title includes "WIP".
An example workflow looks like this (switch to the `<> Edit new file` tab when creating a new workflow and paste the code below):
```yml
name: WIP
on:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
wip:
runs-on: ubuntu-latest
steps:
- uses: wip/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
Then to prevent PRs from being merged, enable the `WIP (action)` status check in your Settings > Branch > [Branch Name] > Protect matching branches > Require status checks to pass before merging
## Contributing
I don't plan to add more features to it. It's only 10 lines of code, a great reference action to build one that matches your needs :)
## License
[Apache 2.0](LICENSE)
