How to use the gitlab.Projects function in gitlab

To help you get started, we’ve selected a few gitlab examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github btoles / semantix / src / create-release.js View on Github external
module.exports = async nextVersion => {
    if (GITHUB_TOKEN && GITLAB_TOKEN) {
        throw new Error('Found both GitLab and GitHub token, please supply one or the other.');
    }
    if (GITHUB_TOKEN) {
        const gitHub = new octokit({
            baseUrl: GITHUB_URL,
            type: 'token',
            token: GITHUB_TOKEN
        });
    }
    if (GITLAB_TOKEN) {
        const gitLab = new Projects({
            url: GITLAB_URL,
            token: GITLAB_TOKEN
        });
    }
}

gitlab

Full NodeJS implementation of the GitLab API. Supports Promises, Async/Await.

MIT
Latest version published 5 years ago

Package Health Score

65 / 100
Full package analysis