It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Hi, we are finding that developers are often incorrectly typing in the JIRA ticket number in the commit comment. We do all our work on JIRA branches and so if we could get Sourcetree to seed the commit comment with the branch name this would remove this issue.
The result of the current situation is that quite a number of JIRA issues show no commits, builds, deploys, etc. And reports produced deom Bamboo, Stash and JIRA are missing these tickets.
One solution is to add the file commit-msg to every clone's .git/hooks folder with contents similar to: {quote} #!/bin/sh # # An example hook script to check the commit log message. # Called by "git commit" with one argument, the name of the file # that has the commit message. The hook should exit with non-zero # status after issuing an appropriate message if it wants to stop the # commit. The hook is allowed to edit the commit message file. # # To enable this hook, rename this file to "commit-msg". BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) echo "Committing to branch: $BRANCH_NAME" > $1.new echo "User commit comments:" >> $1.new cat $1 >> $1.new mv $1.new $1 {quote}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
But this is a pain as you need to remember to add each and every time you create a clone.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We found, installed, configured and use the "Yet Another Commit Checker" add-on which works well for this issue.
We ensure that:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.