commit message in git

John Norris April 8, 2016

Hi,

Can you give some examples of the format of the JIRA issue that has to go in the commit message that is pushed up to Gerrit.

Regards,

John

1 answer

0 votes
jhansche June 20, 2016

If your search query is using the message:%s search predicate, then the associated JIRA issue id only needs to appear somewhere in the commit message.  For example, if the project is called GRT and you're viewing the GRT-555 issue, then a commit message like this should work:

GRT-555: This fixes the problem with the foos
 
More descriptive commit message, as needed.
 
Change-Id: I123456789abcdef...

You should be able to search for the same predicate using the search bar in the top-right corner of the Gerrit web UI, and get the same results:  message:GRT-555

Suggest an answer

Log in or Sign up to answer