incubator-devlake
incubator-devlake copied to clipboard
[Feature] gitlab - Link Merge Requests to Issues in the gitlab plugin
Search before asking
- [X] I had searched in the issues and found no similar feature requirement.
Use case
As a Gitlab user I would like to see which Merge Requests contributed to resolving an Issue/Bug/Work Item.
Description
Our developers usually add the issue number (in our case JIRA) to either the title or the description of a Merge Request.
In the _raw_gitlab_api_merge_requests
table I can see the API request currently captures that information
{"id":...,"iid":...,"project_id":...,"title":"ABCD-6514 fixed for view, program and client","description":"Related to ABCD-6514","state":"merged"... "source_branch":"..." ...}
Our JIRA instance has the board with the prefix "ABCD-".
Similar to the functionality of the Github plugin the Gitlab plugin would use a configuration value that defines a regular expression to parse out the issue string (in this case any string starting "ABCD-") from the title and description and add a record to the table pull-request-issues
.
Questions
- Is it valid for the
pull-request-issues
to map multiple pull requests to a singular issue? - What to do when there isn't an issue already imported?
Related issues
No response
Are you willing to submit a PR?
- [X] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct