Skip to content

AM1729/action-wip-blocker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Auto Block WIP PRs

A GitHub Action that blocks PRs that are tagged by WIP (et al) or have WIP in their title. A fail fast method to remind the reviewer that the current PR is still a work in progress and should not be merged.

Scans labels and title of the PR and fails if it encounters any of the blocked words in them.

Usage

If this solves your problems adding it to your project is straightforward

name: WIP Checker

on:
  pull_request:
    branches:
    - development
    types: [labeled, unlabeled, edited, opened, synchronize, reopened]

jobs:
  check_wip:
    runs-on: ubuntu-latest
    steps:
    - name: Block if WIP PR
      uses: ParanoidBeing/action-wip-blocker@v0.1.1
      env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          BLOCK_LIST: "WIP|do not merge|backend not live"

Depending on your project's requrirements you may add / remove triggers and/or branches Pull request events

About

GitHub Action that blocks WIP PRs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 75.4%
  • Dockerfile 24.6%