I am able to write an update which allows the the format of the PROJECT-###: <message> in commit and if it misses it throws oout the ERROR. Now I am looking to make sure the PROJECT-### is valid Jira issue number (as It takes any number which is not a valid number)
Need Help
Commit Policy Plugin verifies not only the syntactical correctness of JIRA issue keys, but also check them against a JQL query!
See:
Edit Commit Policy.png
This is the relevant part of the documentation: http://www.midori-global.com/products/jira-commit-policy-plugin/documentation/#issue-in-jql-result-condition
You need to write a Git pre-commit hook for your repositories. Or if you are using Stash, write one for it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I need the shell to validate the Jira ticket number. I have already written the hook with does take the format of the ticket but does not validate with Jira if the ticket exists or not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Extend your script to make the call to JIRA then. If the response code is anything other and a 2xx or a 3xx, you know you've got a invalid issue key.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.