Labelbox / pr-lint-action

A GitHub Action to ensure that your PR title matches a given regex.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pull Request Linter

A GitHub Action to ensure that your PR title matches a given regex.

Usage

Create a workflow definition at .github/workflows/<my-workflow>.yml with something like the following contents:

name: PR Lint

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

jobs:
  pr-lint:
    runs-on: ubuntu-latest
    steps:
    - uses: morrisoncole/pr-lint-action@v1.0.0
      with:
        title-regex: "#EX-[0-9]+"
        on-failed-regex-comment: "This is just an example. Failed regex: `%regex%`!"
        repo-token: "${{ secrets.GITHUB_TOKEN }}"

Related Reading

About

A GitHub Action to ensure that your PR title matches a given regex.

License:MIT License


Languages

Language:TypeScript 72.9%Language:Dockerfile 16.1%Language:JavaScript 11.0%