Replaces legacy @mojoio/gitlab with modern ESM TypeScript client supporting projects, groups, CI/CD variables, and pipelines.
602 B
602 B
@apiclient.xyz/gitlab
A TypeScript client for the GitLab API, providing easy access to projects, groups, CI/CD variables, and pipelines.
Install
npm install @apiclient.xyz/gitlab
Usage
import { GitLabClient } from '@apiclient.xyz/gitlab';
const client = new GitLabClient('https://gitlab.com', 'your-private-token');
// Test connection
const result = await client.testConnection();
// List projects
const projects = await client.getProjects();
// Manage CI/CD variables
await client.createProjectVariable(123, 'SECRET_KEY', 'secret-value');
License
MIT