Skip to main content
GitLab is a web-based DevOps platform that provides Git repository management, CI/CD pipelines, issue tracking, and more. It enables teams to collaborate on code, automate software delivery, and enforce security and compliance policies. Using the GitLab API, you can programmatically manage projects, users, groups, pipelines, and repository data for governance and auditing.

Example

To create the GitlabHandler object, initialize it with your GitLab private token and instance URL. The handler authenticates with GitLab and provides methods to fetch projects, issues, merge requests, and more.
Get User Profile:
Retrieves the full authenticated GitLab user profile.
Get Projects:
Lists all projects owned by the authenticated user.
Get Groups and Members:
Lists groups owned by the user and their members.
Get Issues:
Fetches issues for a specific project or across all accessible projects.
Get Merge Requests:
Fetches merge requests for a project or across all projects.
Get Hooks:
Retrieves webhooks configured for a project (or all projects).
Get Pipelines:
Lists recent pipelines for a project or across all accessible projects.
Get Branches:
Fetches all branches for a project or across all projects.
Get Branch Protection Rules:
Fetches branch protection rules for a project (or all projects).
Get Packages:
Lists all packages published to GitLab’s package registry for a project or across projects.