Skip to content

feat(commands/mr/create): add --repo support for --target-project

Kerri Miller requested to merge github/fork/maxice8/merge-request-by-repo into trunk

Created by: maxice8

Description

one can now use something like --target-project alpine/aports to set the target of the project something via a string, it uses glrepo.FromFullName just like --repo so it supports the same specification.

It also re-uses the Httpclient from mr so it will use the correct HOST (as long as GitLab does not become federated we will be fine in this case)

Related Issue

Resolves #403 (closed)

How Has This Been Tested?

Created https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/16137 with glab mr create --target-project alpine/aports

Screenshots (if appropriate): image image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)

Merge request reports