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.58 kB
"use strict"; // @ts-nocheck /* tslint:disable */ /* eslint-disable */ /* * ------------------------------------------------------------------------- * ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ## * ------------------------------------------------------------------------- * @Version 1.5.0 * @Source /{repo}/-/build/logs/stage/{sn}/{pipelineId}/{stageId} */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBuildStage = getBuildStage; const request_1 = __importDefault(require("../../helpers/request")); /** * @description 访问令牌调用此接口需包含以下权限。Required permissions for access token. * repo-cnb-trigger:r * @tags Build * @name getBuildStage * @summary 查询流水线Stage详情。Get pipeline build stage detail. * @request get:/{repo}/-/build/logs/stage/{sn}/{pipelineId}/{stageId} ---------------------------------- * @param {GetBuildStageParams} arg0 - getBuildStage request params * @param {RequestConfig} arg1 - Other reuqest params */ async function getBuildStage({ repo, sn, pipelineId, stageId }, { req, options, ...axiosConfig } = {}) { return await request_1.default.request({ ...axiosConfig, _next_req: req, options: options, url: `/${repo}/-/build/logs/stage/${sn}/${pipelineId}/${stageId}`, _apiTag: '/{repo}/-/build/logs/stage/{sn}/{pipelineId}/{stageId}', method: 'get' }); }