gitlab-rest-api

Manage GitLab projects, repositories, issues, merge requests, pipelines, users, and groups via REST API v4.

19|6|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/Yuyz0112/public-api-skills --skill gitlab-rest-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gitlab-rest-api
Source: https://github.com/Yuyz0112/public-api-skills/tree/main/apis/gitlab/gitlab-rest-api
Command: npx skills add https://github.com/Yuyz0112/public-api-skills --skill gitlab-rest-api

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured and accessible way to interact with the GitLab REST API, enabling automation of various GitLab tasks and workflows.

Core Features & Use Cases

  • Repository Management: Create, update, and delete branches, tags, and files.
  • Issue and Merge Request Handling: Manage issues, merge requests, comments, and approvals.
  • CI/CD Automation: Trigger pipelines, manage runners, and access CI variables.
  • User and Group Management: Retrieve and manage user and group information, including access requests.
  • Use Case: Automate the creation of a new project, set up CI/CD variables, and assign a default branch protection rule.

Quick Start

Use the gitlab-rest-api skill to get a list of all merge requests for the project with ID 123.

Frequently Asked Questions about gitlab-rest-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GitLab merge requests and CI/CD pipelines using the REST API?

You can automate GitLab merge requests and CI/CD pipelines by using the GitLab REST API (v4) to programmatically trigger pipelines, manage runners, handle approvals, and access CI variables. Authentication requires a bearer token or OAuth2.

What's the best way to manage GitLab repositories and branch protection rules programmatically?

Managing GitLab repositories programmatically involves using the REST API to create, update, and delete branches, tags, and files, as well as assigning default branch protection rules for individual projects.

Does the GitLab REST API support OAuth2 authentication for accessing project and group management features?

Yes, the GitLab REST API supports OAuth2 authentication alongside http bearer tokens. This allows you to securely retrieve and manage user, group, and project information, including handling access requests.

How do I retrieve a list of merge requests for a specific GitLab project via the API?

To retrieve merge requests for a specific GitLab project, you query the GitLab REST API using the project's unique ID. The API provides comprehensive endpoints to list, filter, and manage merge requests.

Can I use the GitLab API to programmatically create a new project and set up CI variables?

Yes, you can use the GitLab REST API to automate the creation of new projects, set up CI/CD variables, manage issues, and handle comments and approvals within your GitLab instance.

When should I use on-demand documentation loading with the GitLab REST API?

On-demand documentation loading is useful when interacting with specific GitLab REST API resources and operations, allowing you to access detailed reference information only for the exact endpoints needed during your programmatic interaction.