Is it possible to assign tickets or add labels to github issues in a commit message?
Example:
@usera ready for you to sign off for #Testing
where @usera is a user and #Testing is a label ?
Well unfortunately it looks like it isn't possible without some hackery. I put together a simple sinatra app (that you can throw on heroku) to handle a few new handlers
Github Postcommit Shinies
To assign to a user you can do:
git commit -a -m 'updates #23 assigned =USERNAME';
To add labels you can do:
git commit -a -m 'updates #23 ~QA ~testing'
You can also mix and match:
git commit -a -m 'updates #23 ~QA ~testing =QAUSER'
I have not seen support for referencing text labels or users in commit messages. However, you can reference an issue by its number in a commit message:
ready for you to sign off for #341
If there is an Issue #341 in your GitHub project, GitHub will recognize that #341
references an existing Issue, and will link to it.
For more info on referencing issues in commit messages: https://github.com/blog/831-issues-2-0-the-next-generation
An example of what I have described from the above link:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With