GitSettings

更新云原生构建设置。Update cloud native build settings.

更新指定仓库的云原生构建(Pipeline)配置信息。 Update the cloud native build (Pipeline) configuration of the specified repository. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-manage:rw

put/{repo}/-/settings/cloud-native-build

Request

  • Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
  • URL: https://api.cnb.cool/{repo}/-/settings/cloud-native-build
  • Auth: API key in header Authorization

Path parameters

repostring required

不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.

Request body

auto_triggerboolean

是否允许仓库按照.cnb.yml配置自动触发云原生构建。

auto_trigger_by_npcboolean

是否允许NPC自动触发云原生构建。

cron_auto_triggerboolean

是否允许仓库按照.cnb.yml配置自动触发定时任务。

forked_repo_auto_triggerboolean

是否允许本仓Fork出来的仓库按照.cnb.yml配置自动触发云原生构建。

Response

OK

Changes

No recorded changes to this operation across all 1 revision of this API.