feat: "Command to run MR pipeline implemented"

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

Description

  • Implemented new flag --mr for glab ci run command
  • Takes in a merge request ID.
  • Automatically creates and runs a merge request pipeline for the given merge request id.
  • If merge request ID is NOT provided, runs pipeline for merge request for current branch if any.

Related Issues

Resolves #7438 (closed)

How has this been tested?

  • Tested it by writing unit tests and manual testing on gitlab-community-cli and running on a dummy MR.

Screenshots (if appropriate):

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)
  • Test gap

Closes #7438 (closed)

Edited by Riyansh Biswas (Rio)

Merge request reports

Loading