What is @gitbeaker/core?
@gitbeaker/core is a comprehensive Node.js library for interacting with the GitLab API. It provides a wide range of functionalities to manage projects, repositories, issues, users, and more within a GitLab instance.
What are @gitbeaker/core's main functionalities?
Project Management
This feature allows you to create and manage projects within a GitLab instance. The code sample demonstrates how to create a new project using the GitLab API.
const { Gitlab } = require('@gitbeaker/node');
const api = new Gitlab({ token: 'your_access_token' });
async function createProject() {
const project = await api.Projects.create({ name: 'new-project' });
console.log(project);
}
createProject();
Issue Management
This feature allows you to create and manage issues within a GitLab project. The code sample demonstrates how to create a new issue in a specific project.
const { Gitlab } = require('@gitbeaker/node');
const api = new Gitlab({ token: 'your_access_token' });
async function createIssue() {
const issue = await api.Issues.create(1, { title: 'New Issue', description: 'Issue description' });
console.log(issue);
}
createIssue();
User Management
This feature allows you to manage users within a GitLab instance. The code sample demonstrates how to list all users using the GitLab API.
const { Gitlab } = require('@gitbeaker/node');
const api = new Gitlab({ token: 'your_access_token' });
async function listUsers() {
const users = await api.Users.all();
console.log(users);
}
listUsers();
Repository Management
This feature allows you to manage repositories and their contents within a GitLab project. The code sample demonstrates how to list all files in a repository.
const { Gitlab } = require('@gitbeaker/node');
const api = new Gitlab({ token: 'your_access_token' });
async function listRepositoryFiles() {
const files = await api.Repositories.tree(1);
console.log(files);
}
listRepositoryFiles();
Other packages similar to @gitbeaker/core
node-gitlab
node-gitlab is another Node.js library for interacting with the GitLab API. It provides similar functionalities to @gitbeaker/core but may have a different API design and feature set.
gitlab
gitlab is a simple Node.js wrapper for the GitLab API. It offers basic functionalities for interacting with GitLab but may not be as comprehensive as @gitbeaker/core.
node-gitlab-api
node-gitlab-api is a lightweight Node.js library for the GitLab API. It provides essential features for managing GitLab resources but may lack some advanced functionalities found in @gitbeaker/core.
40.1.0 (Mon Jul 08 2024)
:tada: This release contains work from new contributors! :tada:
Thanks for all your work!
:heart: null@YupaTT
:heart: null@nhollander-alert
:heart: Ali Souidan (@ali-souidan)
:heart: null@omer-rivlin-platinum
:heart: null@michael-smt
:heart: Sefa Eyeoglu (@Scrumplex)
✨ Feature
@gitbeaker/requester-utils
, @gitbeaker/rest
- Remove token requirement to support access without authentication #3588 (@michael-smt)
@gitbeaker/core
, @gitbeaker/rest
🐛 Bug Fix
@gitbeaker/core
- Epic label events super used singular 'epic', not 'epics' #3594 (@arsdehnel)
🚑 Hot Fix
@gitbeaker/cli
, @gitbeaker/core
, @gitbeaker/requester-utils
, @gitbeaker/rest
🔨 Technical Debt
↕️ Dependencies
🗃️ Typescript Definitions
⚠️ Pushed to main
@gitbeaker/cli
, @gitbeaker/core
, @gitbeaker/requester-utils
, @gitbeaker/rest
🚨 Tests
📚 Documentation
Authors: 9