You can capture entire commit discussions in IBM® Engineering Workflow
Management (EWM) work
items that are referenced in a Git commit comment. For example, if the Git commit comment is
Fix for defect 320 and a discussion occurs about this commit in GitLab, then
each discussion comment is captured in defect 320.
Before you begin
Make sure that you have completed the tasks described in Configuring the basic integration with GitLab.A shared user base, such as a
common LDAP, between EWM and the
GitLab/GitLab Enterprise server is optional. It is recommended to add an EWM
functional user ID to the webhook configuration. Ensure that the functional user is authorized for
Git requests.
About this task
In the commit message, these keywords are recognized as work item references:
workitem, bug, task,
defect, and #.
You must configure a webhook for each GitLab Enterprise repository to commit discussions in work
items.
Procedure
-
In the web client, log on to the Change and Configuration Management. For example, go to
https://host_name:9443/ccm/web.
-
Click .
-
Click Browse Registered Git Repositories.
-
Select the repository that you registered.
-
Expand the Host Server Configuration section.
-
Ensure that the Hosting Server field is set to
GitLab.
-
In the Secret Key Authorization field, enter a secret. This secret is
provided when you configure the webhook in GitLab.
-
Optional: If GitLab and EWM do not
share a user base, then a functional user is required. To use a functional user ID for a webhook
URL, click Insert Functional User. Select the user and click
OK.
-
Click Save to persist the changes to the Git Repository Registration
page in EWM.
-
Copy the web hook URL.
-
To add the webhook URL to the GitLab repository, follow the instructions in Web hooks.
-
Under Trigger select Comments and
Issues.
-
In the Secret Token field, enter the value that you entered in the
Secret Key Authorization field.
-
Click Save to save the webhook configuration in GitLab.
- Optional:
To disable replication of the commit discussion in work items:
-
In the web client, log on 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.