Replaces legacy @mojoio/gitlab with modern ESM TypeScript client supporting projects, groups, CI/CD variables, and pipelines.
31 lines
602 B
Markdown
31 lines
602 B
Markdown
# @apiclient.xyz/gitlab
|
|
|
|
A TypeScript client for the GitLab API, providing easy access to projects, groups, CI/CD variables, and pipelines.
|
|
|
|
## Install
|
|
|
|
```sh
|
|
npm install @apiclient.xyz/gitlab
|
|
```
|
|
|
|
## Usage
|
|
|
|
```typescript
|
|
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
|