Github commit message tagging

Is it possible to assign tickets or add labels to github issues in a commit message?

Example:

  • Unexpected merge conflict with git
  • Whats the simplest way to return all commits on git to master branch that have not been merged already?
  • tracking daily changes, as a peon, in a clearcase shop
  • Git branch push to different repo
  • git fetch && git reset --soft not updating commits
  • GIT: How to remove file from master and put in other branch?
  • @usera ready for you to sign off for #Testing
    

    where @usera is a user and #Testing is a label ?

  • 2 svn -> 1 git. How to map two svn repositories into one git with two branches with common origin?
  • Renaming a file in git
  • How to deploy to github with file pattern on travis?
  • How to Setup Corkscrew to Connect to Github through Draconian Proxy
  • git-lint pylint not running pylintrc file
  • In Git, how to commit file once, but ignore further changes to the file
  • 4 Solutions collect form web for “Github commit message tagging”

    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:

    • Mentioning an issue in a commit

    Just adding to this (Sorry I don’t have enough rep to comment if that would be more appropriate) but I just did a commit on github using @username and it created a linke in the commit message on github.com just fine.

    You can see the commit message here if you’re interested: https://github.com/kremerk/SqliteORM/commit/52008b80c71291e0164175f7b089ef3c096798a0

    Git Baby is a git and github fan, let's start git clone.