ShellMagick / commit-hooks

Commit hooks based on experience, needs in teams I have worked, and acquired taste.
MIT License
0 stars 0 forks source link

Hook checking Jira issue linking #4

Closed AFulgens closed 4 months ago

AFulgens commented 8 months ago

Context

commiticketing prefixes commits on ephemeral branches based on the branchname. It would be nice to have an additonal hook checking whether the issue referenced in the branchname (and thus in commit messages) is still open.

Idea

Create a hook that does a callout to the repository's issue tracking on Jira and checks the status of the issue, if it's Closed, it rejects the commit. This will also need a base URL and PAT as mandatory arguments.