commit-msg hook: require an issue reference, not a close #121
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
commit-msg hook: require an issue reference, not a close
check_commit_closes_issue.py(thecommit-msghook, canonical here and rolled out to everycoilysiren/*repo) required a closing keyword (close/fixes/resolves) in front of the Forgejo issue URL. Kai asked to relax this: every commit must reference an issue, not necessarily close it.Change
URL_RE— a bare same-repo Forgejo issue URL now satisfies the rule.ERROR_NO_REF, the pre-commit hook display name, anddocs/skill-discipline/handbook.mdfrom "close" to "reference".test_url_without_keyword_acceptedandtest_inline_url_reference_accepted.#N/owner/repo#Nwith a keyword are still rejected (GitHub auto-close risk on mirrored repos), and cross-repo Forgejo URLs are still rejected.Follow-up (loosen to fire only on commits merging into main) tracked separately at coilysiren/inbox#4.