本文介绍了自动关闭带有提交评论的Redmine Task的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Redmine中有一个功能(相关修订版),可将提交与具有在提交注释中键入的特定关键字的任务链接在一起:

There is a feature (associated revisions) in Redmine to link commits with tasks with specific keywords typed in comment on commit:

* for referencing issues: refs, references, IssueID
* for fixing issues: fixes, closes

http://www.redmine. org/projects/redmine/wiki/RedmineSettings#Referencing-issues-in-commit-messages

当我(从Visual Studio 2010 + Mercurial)对存储库进行提交时,所有引用关键字都可以正常工作,但是修复问题"关键字(修复,关闭)不会将状态更改为完成".

When I make commits (from Visual Studio 2010 + Mercurial) to the repository, all referencing keywords are working fine but "fixing issues" keywords (fixes, closes) don’t change the status to "done".

有什么建议吗?

推荐答案

以管理员身份登录并转到设置->存储库->引用并解决提交消息中的问题:

Log in as an admin and go to Settings -> Repositories -> Referencing and fixing issues in commit messages:

请确保:

  • 您在下拉菜单已应用状态
  • 中定义了一个状态
  • 您在提交消息中使用了正确的关键字
  • you have a status defined in the dropdown applied status
  • you're using the correct keywords in your commit messages

以下示例将解决上述设置的问题:

The following examples will close an issue for the above settings:

  • fixes #1234
  • closes #1234
  • fixes #1234
  • closes #1234

要解决此问题,redmine必须阅读最新的提交消息.通常,在单击存储库标签时,redmine会执行此操作.您还可以配置一个定期执行的rake任务.

To have the issue get closed, redmine will have to read the latest commit messages. Usually redmine does this when clicking on the Repository tab. You may also configure a rake task which does this regularly.

这篇关于自动关闭带有提交评论的Redmine Task的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-19 06:50