Skip to content

fix(#107): add gitlint rule for forbidden type+scope combos#119

Open
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/107-add-forbidden-type-scope-rule
Open

fix(#107): add gitlint rule for forbidden type+scope combos#119
fullsend-ai-coder[bot] wants to merge 1 commit into
mainfrom
agent/107-add-forbidden-type-scope-rule

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Add a custom gitlint LineRule (UL1) that rejects commits using forbidden type(scope) combinations from COMMITS.md: fix(ci), feat(ci), fix(e2e), feat(e2e). Register the rule directory via extra-path in .gitlint so it runs in both the pre-commit hook and the commit-lint CI job.

Add a test script (gitlint-forbidden-type-scope-test.sh) that validates the rule rejects all four forbidden combinations (including with breaking-change markers) and accepts valid type(scope) pairs like ci(pipeline), chore(ci), fix(#123).

Note: pre-commit could not run in the sandbox (shellcheck-py install blocked by network policy, exit code 3). The post-script runs an authoritative pre-commit on the runner.


Closes #107

Post-script verification

  • Branch is not main/master (agent/107-add-forbidden-type-scope-rule)
  • Secret scan passed (gitleaks — 8fb64a25b70e4d364f6d535bb252c1bad521629d..HEAD)
  • Pre-commit hooks passed (authoritative run on runner)
  • Tests ran inside sandbox

Add a custom gitlint LineRule (UL1) that rejects commits using
forbidden type(scope) combinations from COMMITS.md: fix(ci),
feat(ci), fix(e2e), feat(e2e). Register the rule directory via
extra-path in .gitlint so it runs in both the pre-commit hook
and the commit-lint CI job.

Add a test script (gitlint-forbidden-type-scope-test.sh) that
validates the rule rejects all four forbidden combinations
(including with breaking-change markers) and accepts valid
type(scope) pairs like ci(pipeline), chore(ci), fix(#123).

Note: pre-commit could not run in the sandbox (shellcheck-py
install blocked by network policy, exit code 3). The post-script
runs an authoritative pre-commit on the runner.

Closes #107
@fullsend-ai-coder fullsend-ai-coder Bot requested a review from a team as a code owner July 10, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Commit-format violations merged unaddressed despite COMMITS.md 'required change' language

0 participants