Skip to content

Commit a5d6b73

Browse files
committed
docs: update COMMIT_LINT.md
Signed-off-by: Eduardo Silva <eduardo@chronosphere.io>
1 parent 6901bb9 commit a5d6b73

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

COMMIT_LINT.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ python .github/scripts/commit_prefix_check.py
3030
### Behavior
3131

3232
- **Default**: Validates the HEAD commit only
33-
- **Pull Request mode**: If the `GITHUB_EVENT_NAME` environment variable is set to `pull_request`, it validates the last 20 commits
33+
- **Pull Request mode**: If the `GITHUB_EVENT_NAME` environment variable is set to `pull_request`, it validates only commits that are part of the PR:
34+
- Commits that exist in the PR branch but not in the base branch
35+
- Merge commits are automatically excluded
36+
- Requires `GITHUB_BASE_REF` environment variable to be set (automatically set in CI)
3437
- **Exit codes**:
3538
- `0` if validation passes
3639
- `1` if validation fails

0 commit comments

Comments
 (0)