How to mark an issue as resolved from the commit log?

后端 未结 4 1646
既然无缘
既然无缘 2021-01-30 10:03

I noted that in BitBucket when your commit log contains a number like #12 this number is linked to the bug number 12.

I found this feature interesting, and

4条回答
  •  臣服心动
    2021-01-30 10:46

    Google Code Project Hosting also supports it:

    http://code.google.com/p/support/wiki/IssueTracker#Integration_with_version_control

    There are commit-log commands to:

    1. Easily set an issue's status to Fixed.
    2. Update any aspect of the issue, and add a comment.
    3. Enter a new issue.
    4. Request a code review.

      (Fixes issue NNN)    Enclose command in parentheses
      Fixes issue NNN.     Full sentence in your log message description
      Fixes issue NNN  On a line by itself
      

    The word Fixes can replaced with Closes or Resolves. The issue number can have a leading pound-sign (#) or not.

    The other commit-log commands use a multi-line "long form" syntax that is more powerful.

    COMMAND-LINE
    ISSUE-FIELD-UPDATE*
    COMMENT-TEXT...
    

    Where COMMAND-LINE is one of the following:

    Update issue NNN
    New issue
    New review
    

    There can be any number of ISSUE-FIELD-UPDATE lines. These lines can be one of the following:

    Summary: NEW-VALUE
    Status: NEW-VALUE
    Owner: NEW-VALUE
    Cc: PLUS-MINUS-LIST
    Labels: PLUS-MINUS-LIST
    

提交回复
热议问题