Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
alert-triangle

GitHub Action

WIP

v1.1.0

WIP

alert-triangle

WIP

DO NOT MERGE – as an action

Installation

Copy and paste the following snippet into your .yml file.

              

- name: WIP

uses: wip/[email protected]

Learn more about this action in wip/action

Choose a version

DO NOT MERGE – as an action.

Build Status Greenkeeper badge

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):

name: WIP
on:
  pull_request:
    types: [opened, synchronize, reopened, edited]

jobs:
  wip:
    runs-on: ubuntu-latest
    steps:
      - uses: wip/[email protected]
        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