Commit Command

Version 1 by Steve Luo
on Jun 06, 2010 03:55.


 
compared with
Version 2 by Steve Luo
on Jun 06, 2010 04:14.


Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 1 changes. View first change.

  Commit command is used in commit message to update or progress issues. It has below syntax:
 {code}
 ACTION ISSUE_KEY [ISSUE_KEY ...] [--ATTRIBUTE1 VALUE1] [--ATTRIBUTE2 VALUE2]
 {code}
  
 For example, the command below is used in JIRA and will progress the issues TST-1, TST-2 and TST-3 with workflow transition 'Resolve Issue' and add comment 'something is updated' to them.
 {code}
 Fix TST-1, TST-2 and TST-3 --comment something is updated
 {code}
  
 Here, the action is _Fix_, and issues are TST-1, TST-2, TST-3, the attribute is _comment_ which has a value _something is updated_.
  
 *Normally, one command is in one line*, if you need multiple line for an attribute, a '\' should be added to the end of line, for example:
 {code}
 Fix TST-1 --comment First line comment \
 Second line comment \
 Third line comment
 {code}
  
 *Command Action*
  
 The action can be customized when you add a *Update Issue Step*. The action in commit command is case-insensitive that means Fix TST-1 is equals to fix TST-1 or FIX TST-1.
  
 *Command Attribute*
  
 The attributes in a commit command are specified by the issue tracker. Please reference them in the appropriate page in this wiki.