2012-03-01 65 views
2

我有一個YouTrack和TeamCity服務器,正確配置爲彼此集成。我將我的工作交給了TeamCity監控的GitHub。我們的目標是允許我提交更改,並將這些更新包含在那些提交YouTrack命令的提交中。從GIT提交消息中刪除YouTrack命令

我現在面臨的問題是,當我做一個git的承諾,如下面的一個:

Fix appearance of content tip edit icon. 

[FIXED]  Tip on storage type passwords had a missing edit icon. 

#MP-5 fixed 

GIT條最後一行,因爲它看起來像評論和提交信息只包括以下內容:

Fix appearance of content tip edit icon. 

[FIXED]  Tip on storage type passwords had a missing edit icon. 

含義,沒有YouTrack命令,並且沒有問題更新。

我開始嘗試替代品,如:

Fix appearance of content tip edit icon. 

[FIXED]  Tip on storage type passwords had a missing edit icon. 

MP-5 fixed 

Fix appearance of content tip edit icon. 

[FIXED]  Tip on storage type passwords had a missing edit icon. 

- #MP-5 fixed 

但這些並沒有引發YouTrack命令(即使YouTrack沒有看到提交信息)。

所以,問題基本上是:

如何解決這個問題的工作流程?請注意,我不想在GIT中禁用註釋剝離,因爲這會破壞git commit -av(其中包含對我的註釋更改的格式化差異概述)。我將不得不求助於使用解析我的提交消息的一些自定義代碼來調用YouTrack REST API?這是否做過?

回答