从GIT提交消息中剥离的YouTrack命令

从GIT提交消息中剥离的YouTrack命令,git,integration,teamcity,commit,youtrack,Git,Integration,Teamcity,Commit,Youtrack,我有一个YouTrack和TeamCity服务器,配置得当,可以相互集成。我将工作交给GitHub,由TeamCity监控。目标是允许我提交更改,并将更新我处理的问题的YouTrack命令包含在这些提交中 我面临的问题是,当我进行git提交时,比如下面的一个: Fix appearance of content tip edit icon. [FIXED] Tip on storage type passwords had a missing edit icon. #MP-5 fix

我有一个YouTrack和TeamCity服务器,配置得当,可以相互集成。我将工作交给GitHub,由TeamCity监控。目标是允许我提交更改,并将更新我处理的问题的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

但是这些并没有触发YouTrack命令(即使YouTrack确实看到了提交消息)

因此,问题基本上是:

如何解决此工作流问题?请注意,我不想在GIT中禁用注释剥离,因为这将破坏GIT commit-av(它包含我在注释中所做更改的格式良好的diff概述)。我是否必须使用解析提交消息的自定义代码调用YouTrack REST API?这以前做过吗?

您可以使用

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