11
0
Fork 0
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:
Wagner Santos 2020-08-02 10:57:20 -03:00
parent a413a3f439
commit 18e9bff0e6
4 changed files with 26 additions and 19 deletions

View file

@ -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