closes-issue hook: assert a Forgejo issue specifically #116
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?
The
closes-issuecommit-msg hook (agentic_os/check_commit_closes_issue.py) only pattern-matched a closing keyword. It accepted theowner/repo#Nshorthand, which is the GitHub idiom and platform-ambiguous, so a commit could "close" a GitHub-style ref while the canonical tracker is Forgejo.Tighten the checker to assert a Forgejo issue specifically (regex-only, no network):
#N(auto-links to this repo's Forgejo issue) or a fullforgejo.coilysiren.me/<owner>/<repo>/issues/NURL.owner/repo#Nshorthand and non-Forgejo refs (e.g. GitHub issue URLs).forgejoremote, falling back toorigin.testverb to run it.