2011-12-02 128 views
12

是否可以在提交消息中分配故障单或向github问题添加标签?Github提交消息标记

实施例:

@usera ready for you to sign off for #Testing 

其中@usera是用户和#Testing是标签?

+0

参见http://stackoverflow.com/questions/1687262 – Krinkle

回答

11

好可惜它看起来像没有一些骇客来说是不可能的。我把一个简单的辛纳屈的应用程序(你可以在Heroku上扔)来处理一些新的处理器

Github Postcommit Shinies

要分配给用户,你可以这样做:

git commit -a -m 'updates #23 assigned =USERNAME'; 

要添加标签,你可以这样做:

git commit -a -m 'updates #23 ~QA ~testing' 

你也可以混合和匹配:

git commit -a -m 'updates #23 ~QA ~testing =QAUSER' 
+3

您的链接是死 – Adaptabi

+1

可你也删除标签? – Simeon

+0

尝试此链接https://github.com/joshrendek/github-postcommit-shinies – Madhusudhan

2

我还没有看到支持在引用消息中引用文本标签或用户。但是,您可以在提交信息通过编号引用的一个问题:

为您准备签署为#341

如果有问题#341在GitHub上的项目,GitHub上会承认#341引用了现有问题,并将链接到它。

欲了解更多信息在引用问题提交信息: https://github.com/blog/831-issues-2-0-the-next-generation

的我从上面的链接描述的例子: