PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@lerna/gitlab-client
Просмотр файла: index.js
"use strict";
const log = require("npmlog");
const { GitLabClient } = require("./lib/GitLabClient");
module.exports.createGitLabClient = createGitLabClient;
function OcktokitAdapter(client) {
return { repos: { createRelease: client.createRelease.bind(client) } };
}
function createGitLabClient() {
const { GL_API_URL, GL_TOKEN } = process.env;
log.silly("Creating a GitLab client...");
if (!GL_TOKEN) {
throw new Error("A GL_TOKEN environment variable is required.");
}
const client = new GitLabClient(GL_TOKEN, GL_API_URL);
return OcktokitAdapter(client);
}
Выполнить команду
Для локальной разработки. Не используйте в интернете!