Skip to content

Add Git push option add/remove merge request labels

Problem to solve

Add labels to commit message such as git commit -am "Fixed issued xyz addlabel:Status:Testing". The idea is to allow labels to be changed without navigating to the issue an editing the label. Labels in this use case are confirmation for other groups to work on them (i.e. from developers to testers).

Proposal

Add support for new push options -o merge.label and -o merge.unlabel.

Example: git push -u origin -o merge.label=workflow:review -o merge.unlabel=workflow:development

Links / references

ZD: https://gitlab.zendesk.com/agent/tickets/14196

Edited by James Ramsay (ex-GitLab)