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

GitHub Action

Pull request linter action

v0.1.0

Pull request linter action

users

Pull request linter action

Lint your pull request name based on commitlint configuration

Installation

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

              

- name: Pull request linter action

uses: JulienKode/[email protected]

Learn more about this action in JulienKode/pull-request-name-linter-action

Choose a version

Actions Status

GitHub action to automatically lint pull request name with commitlint. This is useful if squash merge your pull request for example.

Note: If you are looking to lint the commits of your pull request with commitlint you can use commitlint-github-action

Pull request name linter with commitlint

Configuration

Usage

Create .github/workflows/pr-name.yml

Create a workflow (eg: .github/workflows/pr-name.yml see Creating a Workflow file). Here is an example of configuration

name: pr-name-linter
on:
  pull_request:
    types: ['opened', 'edited', 'reopened', 'synchronize']

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: JulienKode/[email protected]