美文网首页
JIRA-GIT 智能提交

JIRA-GIT 智能提交

作者: Monsty | 来源:发表于2018-04-13 14:47 被阅读0次

准备

为 GIT 仓库配置用户名和邮箱

cd /path/to/your/repo
echo '[user]' >> .git/config
echo 'name = 你的名字 >> .git/config
echo 'email = xxx@yingyinglicai.com' >> .git/config

JIRA 智能提交

命令格式

<ignored text> <ISSUE_KEY> <ignored text> #<COMMAND> <optional COMMAND_ARGUMENTS>

评论

添加一条评论到 JIRA 的问题

语法

<ignored text> <ISSUE_KEY> <ignored text> #comment <comment_string>

例子

git commit -m 'JRA-34 #comment 添加评论'
git push

注意 :提交人的邮件必须在 JIRA 项目里有评论权限。

修改工作流

改变 JIRA 问题到某个状态

语法

<ignored text> <ISSUE_KEY> <ignored text> #<transition_name> <comment_string>

例子

git commit -m 'JRA-090 #close 问题结束'
git push

相关文章

网友评论

      本文标题:JIRA-GIT 智能提交

      本文链接:https://www.haomeiwen.com/subject/kvbckftx.html