Make commit message appear as comment in bitbucket

亡梦爱人 提交于 2019-12-18 08:58:23

问题


Is there a way to make bitbucket show commit messages as part of comments/activity related to a specific issue, whenever it's been marked-up in said message; the same way github does?

Thanks.


回答1:


Issues, pull requests, users and commit hashes can be linked in BitBucket issues and commit messages.

Issues can be closed automatically by including something like resolves #123. Commits referencing issue 123 will generate a cross-reference in the issue. This relies on the issues hook to be enabled, which is done by default on new (after August, 2012) issues-enabled repositories.




回答2:


A little more specific to this, as I had the issue where I was putting issues into my commits, ala "issue #89" which gave me links from the commit into the issue, but not vice versa. Finally found that only a specific set of commands would cause the issue to cross-reference to the commit. This issue led to this guide of actions:

so if I use "ref bug #89", then I got the links and cross referencing in the commit and issue i was looking for.



来源:https://stackoverflow.com/questions/21151792/make-commit-message-appear-as-comment-in-bitbucket

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!