glab-mr*: add pages (#7635)

This commit is contained in:
Reinhart Previano Koentjoro
2022-01-11 22:29:47 +07:00
committed by GitHub
parent a39a1fce8b
commit 285609b239
3 changed files with 81 additions and 0 deletions

33
pages/common/glab-mr.md Normal file
View File

@@ -0,0 +1,33 @@
# glab mr
> Manage GitLab merge requests from the command-line.
> Some subcommands such as `glab mr create` have their own usage documentation.
> More information: <https://glab.readthedocs.io/en/latest/mr>.
- Create a merge request:
`glab mr create`
- Check out a merge request locally:
`glab mr checkout {{mr_number}}`
- View the changes made in the merge request:
`glab mr diff`
- Approve the merge request for the current branch:
`glab mr approve`
- Merge the merge request associated with the current branch interactively:
`glab mr merge`
- Edit a merge request interactively:
`glab mr update`
- Edit the target branch of a merge request:
`glab mr update --target-branch {{branch_name}}`