Loading...
Loading...
GitLab issues, merge requests, repositories, CI pipelines, and code search via the glab CLI. Use when the user mentions GitLab, an MR/issue number, a project on gitlab.com, or a self-hosted GitLab instance.
npx skill4agent add acedatacloud/skills gitlabglab$GITLAB_TOKENglabGITLAB_ACCESS_TOKENOAUTH_TOKENgitlab.comGITLAB_HOST--hostname <host>glab --helpglab <subcommand> --helpglab issueglab mrglab repoglab ciglab jobglab pipelineglab releaseglab snippetglab variableglab labelglab milestoneglab schedule--output jsonglab apiglab api <path>glab api graphql -f query='…'-X POST|PATCH|PUT|DELETEGETPOST--field--raw-field-f key=valuetruefalsenull@filename-F key=value-f--paginateLink: rel="next"--hostname <host>:fullpath:branch:userglab issue list --repo OWNER/PROJECT --opened --output json
glab issue list --repo OWNER/PROJECT --assignee=@me --output jsonglab issue view 42 --repo OWNER/PROJECT --comments
glab issue view 42 --repo OWNER/PROJECT --output jsonglab issue create --repo OWNER/PROJECT --title "Bug: foo" --description "Repro steps…" --label bug
glab issue note 42 --repo OWNER/PROJECT --message "Acknowledged."
glab issue close 42 --repo OWNER/PROJECTglab mr list --repo OWNER/PROJECT --assignee=@me --opened --output json
glab mr list --repo OWNER/PROJECT --author=@me --openedglab mr view 99 --repo OWNER/PROJECT
glab mr diff 99 --repo OWNER/PROJECT
glab ci view --repo OWNER/PROJECT --branch <BRANCH>glab mr approve 99 --repo OWNER/PROJECT
glab mr note 99 --repo OWNER/PROJECT --message "Looks good — ready when CI is green."
glab mr merge 99 --repo OWNER/PROJECT --squash --remove-source-branch# URL-encode the project path AND the file path because both contain '/'.
PROJECT=$(printf '%s' 'OWNER/PROJECT' | jq -sRr @uri)
FILE=$(printf '%s' 'src/main.go' | jq -sRr @uri)
glab api "projects/${PROJECT}/repository/files/${FILE}/raw?ref=main"glab ci list --repo OWNER/PROJECT --status running,success,failed
glab ci view --repo OWNER/PROJECT --branch main
glab ci trace --repo OWNER/PROJECT <JOB_ID> # stream a job logglab api "groups/GROUP_PATH_OR_ID/issues?state=opened&search=keyword" \
--paginate \
| jq '.[] | {iid, title, project: .references.full, web_url}'glab api graphql -f query='
query($path: ID!) {
project(fullPath: $path) {
name webUrl
mergeRequests(state: opened) { count }
}
}' -f path=OWNER/PROJECT--repo OWNER/PROJECTOWNER/PROJECTGROUP/SUBGROUP/PROJECT--repojq @uriglab apihostglab--outputtextjsonglab issue listglab mr list--output-formatdetailsidsurls--output json-O-F