Capturing issue or commit discussion comments
You can capture issue comments or commit discussion comments in IBM® Engineering Workflow Management (EWM) work items when those comments have references to work items. For example, if a commit discussion or issue comment has the words defect 320, defect 380, then these comments are captured in those two defects.
Before you begin
A shared user base, such as a common LDAP, between EWM and the GitHub Enterprise server is optional. It is recommended to add an EWM functional user ID to the webhook configuration when you register the GitHub repository (Registering the GitHub repository in EWM). Ensure that the functional user is authorized for Git requests.
About this task
In Configuring the basic integration with GitHub Enterprise, you configured a webhook. To capture GitHub issue or commit discussion comments in EWM work items, update the configuration of that webhook. For a list of supported keywords in the issue or commit discussion comment, see Creating links from commit message.
Configure a webhook in the GitHub Enterprise repository.
- In a web browser, open the GitHub repository.
- Click the Settings tab.
- In the navigation pane, click Hooks.
- In the Webhooks section, find the webhook that you created previously. Click Edit.
- Under Which events would you like to trigger this webhook?, select Let me select individual events. In the options displayed, select Issues, Commit Comment, and Issue Comment.
- Click Update webhook to complete the configuration of the webhook in GitHub Enterprise.
To disable replication of content from the issue or commit discussion in work items:
- In the web client, log in to Change and Configuration Management. For example, go to https://host_name:9443/ccm/web.
- On the CCM project page, click .
- Click Browse Registered Git Repositories.
- Select the repository that you registered.
- Expand the GitHub/GitLab Configuration section.
- Clear Replicate comments from commit or issue discussion.
- Click Save.
Specify work items in commit discussions.
- To capture commit discussion in a work item, mention the work item number after a supported
keyword in the commit discussion comment. For example:
fix rtcwi 123. For the full list of keywords, see Associating work items with commits.
- To capture issue discussion in a work item, mention the work item number after a supported keyword in the issue discussion comment.
- To capture commit discussion in a work item, mention the work item number after a supported keyword in the commit discussion comment. For example: