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

GitHub Action

PR Lint GitHub Action

v1.0.1

PR Lint GitHub Action

edit-3

PR Lint GitHub Action

PR Lint for GitHub Actions

Installation

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

              

- name: PR Lint GitHub Action

uses: seferov/[email protected]

Learn more about this action in seferov/pr-lint-action

Choose a version

Pull Request Lint

It is a linter of pull requests for Github Actions.

Why?

To enforce pull request titles in the same format will be useful like generating standard changelog messages . Besides it can be used to parse titles and link with issue tracking systems such as JIRA.

Example:

name: PR lint

on: [pull_request]

jobs:
  pr-lint:
    runs-on: ubuntu-latest
    steps:
    - uses: seferov/pr-lint-action@master
      with:
        title-regex: '^\[PROJECT-\d*\]\ '

In this example, for every pull request the title is expected to match ^\[PROJECT-\d*\]\ regex. For instance, [PROJECT-123] lorem ipsum or [PROJECT-2345] dolor sit amet are valid titles for this example. You can customize the title regex for your needs.