You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Pull request linter action
v0.2.0
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
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
- name: Install Dependencies
run: npm install @commitlint/config-conventional
- uses: JulienKode/[email protected]
Note: make sure you install your dependencies that commitlint use
If you want to see an example of usage you can checkout this repository: https://github.com/JulienKode/pull-request-name-linter-action-example