Closed davidcollom closed 6 years ago
Looks great!
Can you make it more generic though? Like, not tied to jira? And please add some documentation describing what this does.
Also, what happens/should happen when you have several commits on the branch?
Hey, I've squashed my commits and removed references of Jira into a ticketref
plugin.
The expected behavior of this plugin is to prefix the commit message with the ticket reference from the branch name to ensure that the correlation of commit's against a specific feature/ticket/incident/issue etc.
cc @juliendufresne :P
This looks interesting for my use case. Any chance it could be updated and accepted?
@Edo78 sure! You can make your own PR and address the issues, I will merge it!
I feel a bit uneasy at copying the code of @davidcollom If he could give me his permission I'll be glad to do it
Hey, really sorry I completely forgot about the PR.
I may have some time today to update the PR based off the comments above, I don't see them taking much time.
@Edo78 / @greg0ire - I've updated this PR based off the comments you left prior
I added some additional configuration for this hook to support both requirements (Pre/Post reference locations).
Add in
commit-msg
style hooks along with a jira/ticket reference hook