Socket
Socket
Sign inDemoInstall

@gitbeaker/core

Package Overview
Dependencies
4
Maintainers
1
Versions
246
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitbeaker/core


Version published
Weekly downloads
662K
decreased by-3.98%
Maintainers
1
Install size
730 kB
Created
Weekly downloads
 

Package description

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

Changelog

Source

17.0.0 (2020-03-24)

Bug Fixes

  • core: Adding better handling for form type arguments (#570) (4751ed2), closes #568

BREAKING CHANGES

  • core: Trigger.pipeline now has a defined variables property to house all the pipeline variables to be set. Before these variables were set on the root object, but this made it difficult to parse any future options that may be added to this function.

Readme

Source

gitbeaker

Gitlab Pipeline Status Code Climate maintainability CodeCov test coverage Dependency Status Dev Dependency Status Dependabot Badge Semantic Release Commitizen Prettier Install Size: Core Licence: MIT

🤖 GitLab API NodeJS library with full support of all the Gitlab API services. This library is generally for internal use only.

Read More

Keywords

FAQs

Last updated on 24 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc