Skip to content
/ wip Public

Simple WIP Github Action written in Bash

License

Notifications You must be signed in to change notification settings

embano1/wip

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About

Github Action to check the specified string, e.g. Github PR title, for work-in-progress ("WIP") patterns using regular expressions in BASH.

Usage

Simple with Defaults

Uses ^[[:space:]]*(WIP)+(:)* regex pattern to match against the PR title.

name: Check "WIP" in PR Title

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

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - name: Check WIP in PR Title
        uses: embano1/wip@v2

Custom Options

name: Check "WIP" in PR Title

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

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - name: Check WIP in PR Title
        uses: embano1/wip@v2
        with:
          # this is also the default value
          title: "${{ github.event.pull_request.title }}"

          # only matches PRs where title is exactly "WIP"
          regex: "^WIP$" 

Configuration Options

Input Type Required Default Description
title string yes ${{ github.event.pull_request.title }} The title to perform regular expression pattern matching against. Typically a field from the Github context is used.
regex string yes ^[[:space:]]*(WIP)+(:)* The regular expression to perform. The default value matches the word WIP (optionally followed by :) and ignores any whitespace character(s) at the beginning of the text.

Note
Currently regular expression pattern matching is case-insensitive, i.e., wip would also match.

About

Simple WIP Github Action written in Bash

Resources

License

Stars

Watchers

Forks

Packages

No packages published