Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Question: How to validate the same Jira issue is both in the branch name and at the start of commit message #87

Open
tlvu opened this issue Jun 28, 2018 · 4 comments
Labels

Comments

@tlvu
Copy link

tlvu commented Jun 28, 2018

Hi,

The use-case is to prevent use from typing the wrong Jira issue into the commit message.

We typically create the branch from Jira so there is no way to get the branch name wrong and the Jira issue will also be part of the branch name.

So if we can check that the same Jira issue that is in the branch name is also in the commit message, we are sure it is good.

This exclude branch master and develop of course. This is for a bugfix/feature/hotfix/release or other custom type of branches.

Thanks

@tomasbjerre
Copy link
Owner

You cannot validate that it is the same jira. I guess you figured out how to validate that there is "a" jira.

@tlvu
Copy link
Author

tlvu commented Jul 3, 2018

Yes I am able to validate there is "a" jira with a regex on a commit. What I am after is able to validate both the commit and the branch name at the same time and check they contain the same jira.

@gsylvie
Copy link

gsylvie commented Jul 19, 2018

Neat idea. If you can wait 3-4 weeks I'll implement this in my free JIRA checker (it's called "Control Freak").

Everyone seems to have their own free Bitbucket JIRA checker these days.... ;-)

@tomasbjerre - I hope you don't mind me posting here. Ping me at [email protected] any time.

@tomasbjerre
Copy link
Owner

No worries! As long as your stuff is free, I don't mind at all =)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants