11
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2026-04-04 16:56:52 +00:00

feat: adds commitDepth as new input param

This commit is contained in:
Sakethtadimeti 2022-11-20 13:45:17 +05:30
parent 861b4d9f10
commit b0982e3b0a
3 changed files with 59 additions and 2 deletions

View file

@ -58,6 +58,12 @@ Link to a page explaining your commit message convention.
default: `https://github.com/conventional-changelog/commitlint/#what-is-commitlint`
### `commitDepth`
When set to a valid Integer value - X, considers only the latest X number of commits.
default: `null` (Equivalent to linting all commits)
### `token`
Personal access token (PAT) used to interact with the GitHub API.
@ -144,6 +150,10 @@ jobs:
# Run the commitlint action, considering its own dependencies and yours as well 🚀
# `github.workspace` is the path to your repository.
- uses: wagoid/commitlint-github-action@v5
# Optinally, add a commitDepth parameter
# This example would only consider the last 10 commits.
with:
commitDepth: 10
env:
NODE_PATH: ${{ github.workspace }}/node_modules
```