GitHub Action
gitlinter
0.3.1
Latest version
This action uses a Docker image based on the go-gitlint CLI tool.
Create a new GitHub Actions workflow at .github/workflows/gitlint.yaml
with this content:
name: Git linter
on: [push, pull_request]
jobs:
gitlint:
runs-on: ubuntu-latest
steps:
- name: Check out the code
# checkout code before linting
uses: actions/checkout@v2
with:
# fetch 20 commits (increase if needed)
fetch-depth: '20'
- name: Lint
# run linter (use latest version here)
uses: g4s8/gitlint-action@0.2
with:
# see `Inputs` section for more details
since: "2020-03-30"
Override the commit subject pattern.
The default value is \(?#\d+\)? - .+
.
Specify the start date for linting git messages. The format is YYYY-MM-DD
(e.g. 2020-03-30
).
The default value is 1970-01-01
.