Issue Merge Request Command
dogit issue:mr issue-id directory
This command will either fetch and checkout or clone a merge request branch. The issue ID as found in the URL of an issue must be known. Alternatively you can clone by project name instead with the Project Merge Request Command.
When the target directory is already a repository, a fetch and checkout will be initiated. Otherwise if the target directory is not a repository, then a clone will be initiated. Omit directory argument or use .
for current working directory.
dogit issue:mr --single 3206672 mydirectory
will clone the MR from Issue 3206672 into directory mydirectory if there is only one MR.
Using --single
option is non interactive. If multiple MR's are present, then the command will quit with an error. Instead you can re-run without the --single
option.
dogit issue:mr 3206672 mydirectory
will clone an MR from Issue 3206672 into directory mydirectory. The user will be prompted to choose which MR to clone, and is presented with additional data:
Issue #3206672 for token at Wed, 31 Mar 2021 21:06:48 +0000: [node:source:field_XYZ] does not use the untranslated node
Please select merge request to checkout [Merge request !13: 3206672-nodesourcefieldxyz-does-not from comment #2]:
[13] Merge request !13: 3206672-nodesourcefieldxyz-does-not from comment #2
dogit issue:mr --help