[go: up one dir, main page]

Skip to content

Custom fields in merge requests

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to solve

Add an option in merge request form for custom fields and dropdowns and save this info as meta data. This allows to integrate with internal systems. E.g. we have a customer issue tracking system where customer reported issues are maintained. We want to link merge requests to these issues. As of today, we've to use the description template and after submission parse that issue number and link it internally. With a clear field it gives a lot more cleaner and flexible way.

Intended users

Further details

Goal is to make integration with internal and third party systems easier with attaching meta data for each merge request.

Proposal

  1. At the project level, define "custom fields" for merge requests.
  2. When merge request is created show these custom fields and text inputs.
  3. Add validation (via API calls).
  4. Save this data as meta data with the merge request.
  5. Display the metadata on the merge request page.
  6. Return this metadata with /merge_request API call

Permissions and Security

Project owners can add custom fields. Developers will simply see these fields when creating merge requests.

Documentation

Testing

This is an add-on/opt-in feature. So testing can focus on only when the custom fields are defined.

What does success look like, and how can we measure that?

Ability to add custom metadata to merge requests

What is the type of buyer?

Links / references

Edited by 🤖 GitLab Bot 🤖