Use this skill when asked to interact with GitLab: pushing to a branch, creating a merge request (MR), viewing or fetching comments/notes from an MR. Trigger phrases: "push to GitLab", "push my branch", "create MR", "create merge request", "open MR", "show MR comments", "get comments from MR", "list MR notes", "what are the MR comments".
From gitlabnpx claudepluginhub caalberts/claude-plugins --plugin gitlabThis skill is limited to using the following tools:
This skill provides GitLab operations using the glab CLI. It handles three operations based on the user's request.
When the user asks to push to a branch or push their changes to GitLab:
Get the current branch if none is specified:
git branch --show-current
Push to the remote, setting upstream tracking on first push:
git push -u origin <branch>
Report success and show the branch URL if glab outputs it.
When the user asks to create an MR or merge request:
If the user has not specified a title, ask for one before proceeding.
Create the MR using glab:
glab mr create \
--title "<title>" \
--description "<description>" \
--target-branch <main or master, detect from repo> \
--fill
--fill to populate description from commit messages when appropriate.--description if the user did not provide one (let --fill handle it).Display the MR URL from the command output.
When the user asks to see, fetch, or list comments or notes on a merge request:
If an MR ID or branch name is given, use it directly:
glab mr note list <mr-iid>
If no ID is given, detect the MR for the current branch:
glab mr list --source-branch "$(git branch --show-current)"
Extract the MR IID from the output, then:
glab mr note list <mr-iid>
Present the comments clearly: show the author, timestamp, and body for each note.
glab is authenticated before operations if errors occur: glab auth statusgit push -u origin <branch> (the -u flag is included by default above)git remote show origin or ask the user