VCS integration with issue trackersVCS与问题跟踪器的集成
With WebStorm, you can connect your commit messages with a bug tracker or an issues data base, and navigate from commits in your VCS log to issues related to these commits.使用WebStorm,您可以将提交消息与bug跟踪器或问题数据库连接起来,并从VCS日志中的提交导航到与这些提交相关的问题。
Enable navigation from commit messages to issues启用从提交消息到问题的导航
Press Ctrl+Alt+S to open IDE settings and select Version Control | Issue Navigation.按Ctrl+Alt+S打开IDE设置并选择“版本控制”|“问题导航”。-
Configure a list of issue navigation patterns by mapping issue patterns in commit messages with URL addresses of the referenced issues.通过将提交消息中的问题模式与引用问题的URL地址映射,配置问题导航模式列表。-
If you are using JIRA or YouTrack, click Add JIRA pattern如果您正在使用JIRA或YouTrack,请单击工具栏上的“添加JIRA模式”or Add YouTrack Pattern
on the toolbar, and type the URL to the installation of the bug tracking system.
或“添加YouTrack模式”
,然后键入安装错误跟踪系统的URL。
WebStorm will automatically add a regular expression that defines the navigation pattern.WebStorm将自动添加定义导航模式的正则表达式。 -
For other issue tracking systems, click the Add button对于其他问题跟踪系统,请单击“添加”按钮to create a new entry or select an existing entry and click the Edit button.
创建新条目,或选择现有条目并单击“编辑”按钮。
In the Add Issue Navigation Link dialog that opens, specify the following:在打开的“添加问题导航链接”对话框中,指定以下内容:-
The pattern for issue ID in a commit message.提交消息中问题ID的模式。 -
The replacement expression that defines the URL to access the corresponding referenced issue.替换表达式,用于定义访问相应引用问题的URL。
-
-
Example例子
|
[A-Z]+\-\d+
|
Issue link pattern |
http://<mytracker>/issue/$0
|
MYPROJECT-110 | |
Composed issue link |
http://mytracker/issue/MYPROJECT-110 |