@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
32 lines (31 loc) • 1.04 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.disablePipelines = exports.enablePipelines = void 0;
const enablePipelines = async () => {
// TODO: get workspace name from git provider
// const workspace = "digitopvn";
// try {
// var { data, headers } = await bitbucket.repositories.updatePipelineConfig({
// workspace: workspace,
// repo_slug: projectSlug,
// _body: { enabled: true },
// });
// } catch (e) {
// await logBitbucketError(e, 400);
// }
};
exports.enablePipelines = enablePipelines;
const disablePipelines = async () => {
// TODO: get workspace name from git provider
// const workspace = "digitopvn";
// try {
// var { data, headers } = await bitbucket.repositories.updatePipelineConfig({
// workspace: workspace,
// repo_slug: projectSlug,
// _body: { enabled: false },
// });
// } catch (e) {
// await logBitbucketError(e, 400);
// }
};
exports.disablePipelines = disablePipelines;