mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 16:06:56 +00:00
This follows the commitlint CLI behavior, which exits with success when there are only warnings. This behavior can be changed by passing 'true' to the parameter `failOnWarnings`.
22 lines
746 B
YAML
22 lines
746 B
YAML
name: 'Commit Linter'
|
|
description: 'Lints Pull Request commit messages with commitlint'
|
|
author: 'Wagner Santos'
|
|
inputs:
|
|
configFile:
|
|
description: 'commitlint config file'
|
|
default: './commitlint.config.js'
|
|
required: false
|
|
firstParent:
|
|
description: 'when set to true, we follow only the first parent commit when seeing a merge commit. More info in git-log docs https://git-scm.com/docs/git-log#Documentation/git-log.txt---first-parent'
|
|
default: 'true'
|
|
required: false
|
|
failOnWarnings:
|
|
description: 'whether you want to fail on warnings or not'
|
|
default: 'false'
|
|
required: false
|
|
runs:
|
|
using: 'docker'
|
|
image: 'docker://wagoid/commitlint-github-action:1.3.2'
|
|
branding:
|
|
icon: 'check-square'
|
|
color: 'blue'
|