mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2026-04-09 02:54:18 +00:00
feat: use action input instead of env var to get the github token
BREAKING CHANGE: GITHUB_TOKEN env var is now ignored. In case a custom token is needed, it'll be necessary to pass it via the `token` input from now on.
This commit is contained in:
parent
a413a3f439
commit
18e9bff0e6
4 changed files with 26 additions and 19 deletions
11
action.yml
11
action.yml
|
|
@ -7,7 +7,9 @@ inputs:
|
|||
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'
|
||||
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:
|
||||
|
|
@ -18,6 +20,13 @@ inputs:
|
|||
description: 'Link to a page explaining your commit message convention'
|
||||
default: 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint'
|
||||
required: false
|
||||
token:
|
||||
description: >
|
||||
Personal access token (PAT) used to interact with the GitHub API.
|
||||
By default, the automatic token provided by GitHub is used.
|
||||
You can see more info about GitHub's default token here: https://docs.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token
|
||||
default: ${{ github.token }}
|
||||
required: false
|
||||
outputs:
|
||||
results:
|
||||
description: The error and warning messages for each one of the analyzed commits
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue