UNPKG

@cnbcool/mcp-server

Version:

CNB MCP Server. A comprehensive MCP server that provides seamless integration to the CNB's API(https://cnb.cool), offering a wide range of tools for repository management, pipelines operations and collaboration features

40 lines (38 loc) 1.39 kB
"use strict"; // @ts-nocheck /* tslint:disable */ /* eslint-disable */ /* * ------------------------------------------------------------------------- * ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ## * ------------------------------------------------------------------------- * @Version 1.5.0 * @Source /{repo}/-/build/stop/{sn} */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.stopBuild = stopBuild; const request_1 = __importDefault(require("../../helpers/request")); /** * @description 访问令牌调用此接口需包含以下权限。Required permissions for access token. * repo-cnb-trigger:rw * @tags Build * @name stopBuild * @summary 停止一个构建。 Stop a build. * @request post:/{repo}/-/build/stop/{sn} ---------------------------------- * @param {StopBuildParams} arg0 - stopBuild request params * @param {RequestConfig} arg1 - Other reuqest params */ async function stopBuild({ repo, sn }, { req, options, ...axiosConfig } = {}) { return await request_1.default.request({ ...axiosConfig, _next_req: req, options: options, url: `/${repo}/-/build/stop/${sn}`, _apiTag: '/{repo}/-/build/stop/{sn}', method: 'post' }); }