Skip to content

Instantly share code, notes, and snippets.

@igniteflow
Last active November 2, 2021 11:57
Show Gist options
  • Save igniteflow/e29d11a4d142207b59c6589e26817139 to your computer and use it in GitHub Desktop.
Save igniteflow/e29d11a4d142207b59c6589e26817139 to your computer and use it in GitHub Desktop.
Useful glab commands
# prints list of merge request ids only for a given user and target branch
glab mr list --assignee <gitlab-user-name> --target-branch <target-branch-name> | awk '{ print $1 }' | sed 's/!//g' | while read line; do glab mr update $line --target-branch <target-branch-name>; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment