@cnbcool/cnb-cli 1.3.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cnb.js +1 -1
- package/dist/index.js +66 -0
- package/package.json +10 -5
- package/cli/core/config/cag.config.js +0 -58
- package/cli/core/core.js +0 -124
- package/cli/core/fetch-response-handler.js +0 -34
- package/cli/core/flat-options.json +0 -8909
- package/cli/core/help.json +0 -38458
- package/cli/core/index.js +0 -40
- package/cli/core/key-mapping.json +0 -538
- package/cli/core/lib/execute-action.js +0 -117
- package/cli/core/lib/extra-help.js +0 -20
- package/cli/core/lib/flat-options-data.js +0 -16
- package/cli/core/lib/format-output.js +0 -85
- package/cli/core/lib/format-params.js +0 -217
- package/cli/core/lib/help-data.js +0 -15
- package/cli/core/lib/key-mapping-data.js +0 -16
- package/cli/core/lib/parsers.js +0 -126
- package/cli/core/lib/print-json.js +0 -24
- package/cli/core/lib/register-fallback.js +0 -15
- package/cli/core/lib/register-modules.js +0 -121
- package/cli/core/lib/summary-extractors.js +0 -181
- package/cli/core/lib/trim-summary.js +0 -17
- package/cli/core/shortcuts.js +0 -276
- package/cli/core/utils/build-nested-field-map.js +0 -35
- package/cli/core/utils/convert-link.js +0 -144
- package/cli/core/utils/flat-key-from-segments.js +0 -14
- package/cli/core/utils/generate-unique-id.js +0 -10
- package/cli/core/utils/match-array-object-field.js +0 -25
- package/cli/core/utils/restore-original-keys.js +0 -24
- package/cli/core/utils/upload.js +0 -237
- package/cli/modules/activities/get-user-activities-by-date.js +0 -75
- package/cli/modules/activities/get-user-repo-activity-details.js +0 -77
- package/cli/modules/activities/top-contributors.js +0 -75
- package/cli/modules/ai/ai-chat-completions.js +0 -69
- package/cli/modules/assets/delete-asset.js +0 -75
- package/cli/modules/assets/get-files.js +0 -75
- package/cli/modules/assets/get-imgs.js +0 -75
- package/cli/modules/assets/list-assets.js +0 -75
- package/cli/modules/badge/get-badge.js +0 -79
- package/cli/modules/badge/list-badge.js +0 -69
- package/cli/modules/badge/upload-badge.js +0 -69
- package/cli/modules/build/build-crontab-sync.js +0 -74
- package/cli/modules/build/build-logs-delete.js +0 -74
- package/cli/modules/build/build-runner-download-log.js +0 -74
- package/cli/modules/build/get-build-logs.js +0 -75
- package/cli/modules/build/get-build-stage.js +0 -78
- package/cli/modules/build/get-build-status.js +0 -74
- package/cli/modules/build/start-build.js +0 -69
- package/cli/modules/build/stop-build.js +0 -74
- package/cli/modules/charge/get-special-amount.js +0 -67
- package/cli/modules/event/get-events.js +0 -73
- package/cli/modules/followers/get-followers-by-user-id.js +0 -75
- package/cli/modules/followers/get-following-by-user-id.js +0 -75
- package/cli/modules/git/create-blob.js +0 -69
- package/cli/modules/git/create-branch-lock.js +0 -74
- package/cli/modules/git/create-branch.js +0 -69
- package/cli/modules/git/create-tag.js +0 -69
- package/cli/modules/git/delete-branch-lock.js +0 -74
- package/cli/modules/git/delete-branch.js +0 -74
- package/cli/modules/git/delete-commit-annotation.js +0 -76
- package/cli/modules/git/delete-commit-asset.js +0 -76
- package/cli/modules/git/delete-tag-annotation.js +0 -74
- package/cli/modules/git/delete-tag.js +0 -74
- package/cli/modules/git/get-archive-commit-changed-files.js +0 -74
- package/cli/modules/git/get-archive-compare-changed-files.js +0 -74
- package/cli/modules/git/get-archive.js +0 -74
- package/cli/modules/git/get-branch.js +0 -74
- package/cli/modules/git/get-commit-annotations-in-batch.js +0 -69
- package/cli/modules/git/get-commit-annotations.js +0 -74
- package/cli/modules/git/get-commit-assets-by-sha.js +0 -74
- package/cli/modules/git/get-commit-assets.js +0 -79
- package/cli/modules/git/get-commit-statuses.js +0 -74
- package/cli/modules/git/get-commit.js +0 -74
- package/cli/modules/git/get-compare-commits.js +0 -74
- package/cli/modules/git/get-content-without-path.js +0 -75
- package/cli/modules/git/get-content.js +0 -77
- package/cli/modules/git/get-head.js +0 -66
- package/cli/modules/git/get-presigned-lfs-download-link.js +0 -77
- package/cli/modules/git/get-raw.js +0 -77
- package/cli/modules/git/get-tag-annotations.js +0 -74
- package/cli/modules/git/get-tag.js +0 -74
- package/cli/modules/git/list-branches.js +0 -75
- package/cli/modules/git/list-commits.js +0 -75
- package/cli/modules/git/list-tags.js +0 -75
- package/cli/modules/git/post-commit-asset-upload-confirmation.js +0 -81
- package/cli/modules/git/post-commit-asset-upload-url.js +0 -77
- package/cli/modules/git/put-commit-annotations.js +0 -77
- package/cli/modules/git/put-tag-annotations.js +0 -77
- package/cli/modules/git-settings/delete-branch-protection.js +0 -74
- package/cli/modules/git-settings/get-branch-protection.js +0 -74
- package/cli/modules/git-settings/get-pipeline-settings.js +0 -66
- package/cli/modules/git-settings/get-pull-request-settings.js +0 -66
- package/cli/modules/git-settings/get-push-limit-settings.js +0 -66
- package/cli/modules/git-settings/list-branch-protections.js +0 -66
- package/cli/modules/git-settings/patch-branch-protection.js +0 -77
- package/cli/modules/git-settings/post-branch-protection.js +0 -69
- package/cli/modules/git-settings/put-pipeline-settings.js +0 -69
- package/cli/modules/git-settings/put-pull-request-settings.js +0 -69
- package/cli/modules/git-settings/put-push-limit-settings.js +0 -69
- package/cli/modules/issues/can-user-be-assigned-to-issue.js +0 -76
- package/cli/modules/issues/create-issue.js +0 -69
- package/cli/modules/issues/delete-issue-assignees.js +0 -77
- package/cli/modules/issues/delete-issue-label.js +0 -76
- package/cli/modules/issues/delete-issue-labels.js +0 -74
- package/cli/modules/issues/get-issue-comment.js +0 -76
- package/cli/modules/issues/get-issue.js +0 -74
- package/cli/modules/issues/list-issue-activities-latest.js +0 -76
- package/cli/modules/issues/list-issue-activities.js +0 -77
- package/cli/modules/issues/list-issue-assignees.js +0 -74
- package/cli/modules/issues/list-issue-comments.js +0 -77
- package/cli/modules/issues/list-issue-labels.js +0 -77
- package/cli/modules/issues/list-issues.js +0 -75
- package/cli/modules/issues/list-user-issues.js +0 -71
- package/cli/modules/issues/patch-issue-assignees.js +0 -77
- package/cli/modules/issues/patch-issue-comment.js +0 -79
- package/cli/modules/issues/post-issue-assignees.js +0 -77
- package/cli/modules/issues/post-issue-comment.js +0 -77
- package/cli/modules/issues/post-issue-file-asset-upload-url.js +0 -77
- package/cli/modules/issues/post-issue-image-asset-upload-url.js +0 -77
- package/cli/modules/issues/post-issue-labels.js +0 -77
- package/cli/modules/issues/put-issue-labels.js +0 -77
- package/cli/modules/issues/update-issue-properties.js +0 -78
- package/cli/modules/issues/update-issue.js +0 -77
- package/cli/modules/knowledge-base/delete-knowledge-base.js +0 -66
- package/cli/modules/knowledge-base/get-knowledge-base-info.js +0 -66
- package/cli/modules/knowledge-base/get-models.js +0 -66
- package/cli/modules/knowledge-base/query-knowledge-base.js +0 -69
- package/cli/modules/knowledge-base/search-npc.js +0 -71
- package/cli/modules/members/add-members-of-group.js +0 -77
- package/cli/modules/members/add-members-of-mission.js +0 -77
- package/cli/modules/members/add-members-of-registry.js +0 -77
- package/cli/modules/members/add-members-of-repo.js +0 -77
- package/cli/modules/members/delete-members-of-group.js +0 -74
- package/cli/modules/members/delete-members-of-repo.js +0 -74
- package/cli/modules/members/delete-outside-collaborators.js +0 -74
- package/cli/modules/members/get-member-access-level-of-group.js +0 -75
- package/cli/modules/members/get-member-access-level-of-repo.js +0 -75
- package/cli/modules/members/list-all-members.js +0 -75
- package/cli/modules/members/list-inherit-members-of-group.js +0 -75
- package/cli/modules/members/list-inherit-members-of-repo.js +0 -75
- package/cli/modules/members/list-member-access-level-of-group.js +0 -74
- package/cli/modules/members/list-member-access-level-of-repo.js +0 -74
- package/cli/modules/members/list-members-of-group.js +0 -75
- package/cli/modules/members/list-members-of-repo.js +0 -75
- package/cli/modules/members/list-outside-collaborators.js +0 -75
- package/cli/modules/members/update-members-of-group.js +0 -77
- package/cli/modules/members/update-members-of-repo.js +0 -77
- package/cli/modules/members/update-outside-collaborators.js +0 -77
- package/cli/modules/missions/create-mission.js +0 -69
- package/cli/modules/missions/delete-mission.js +0 -66
- package/cli/modules/missions/get-group-sub-missions.js +0 -75
- package/cli/modules/missions/get-mission-view-config.js +0 -75
- package/cli/modules/missions/get-mission-view-list.js +0 -66
- package/cli/modules/missions/post-mission-view-config.js +0 -69
- package/cli/modules/missions/post-mission-view-list.js +0 -69
- package/cli/modules/missions/put-mission-view-list.js +0 -69
- package/cli/modules/missions/set-mission-visibility.js +0 -75
- package/cli/modules/organizations/create-organization.js +0 -65
- package/cli/modules/organizations/delete-organization.js +0 -66
- package/cli/modules/organizations/get-group-setting.js +0 -66
- package/cli/modules/organizations/get-group.js +0 -66
- package/cli/modules/organizations/get-groups-by-user-id.js +0 -75
- package/cli/modules/organizations/list-groups.js +0 -75
- package/cli/modules/organizations/list-subgroups.js +0 -75
- package/cli/modules/organizations/list-top-groups.js +0 -71
- package/cli/modules/organizations/transfer-group.js +0 -69
- package/cli/modules/organizations/update-group-setting.js +0 -69
- package/cli/modules/organizations/update-organization.js +0 -69
- package/cli/modules/organizations/upload-logos.js +0 -69
- package/cli/modules/pulls/can-user-be-assigned-to-pull.js +0 -76
- package/cli/modules/pulls/delete-pull-assignees.js +0 -77
- package/cli/modules/pulls/delete-pull-label.js +0 -76
- package/cli/modules/pulls/delete-pull-labels.js +0 -74
- package/cli/modules/pulls/delete-repo-files.js +0 -75
- package/cli/modules/pulls/delete-repo-imgs.js +0 -75
- package/cli/modules/pulls/get-pull-comment.js +0 -76
- package/cli/modules/pulls/get-pull.js +0 -74
- package/cli/modules/pulls/list-pull-assignees.js +0 -74
- package/cli/modules/pulls/list-pull-comments.js +0 -77
- package/cli/modules/pulls/list-pull-commit-statuses.js +0 -74
- package/cli/modules/pulls/list-pull-commits.js +0 -77
- package/cli/modules/pulls/list-pull-files.js +0 -74
- package/cli/modules/pulls/list-pull-labels.js +0 -77
- package/cli/modules/pulls/list-pull-review-comments.js +0 -79
- package/cli/modules/pulls/list-pull-reviews.js +0 -77
- package/cli/modules/pulls/list-pulls-by-numbers.js +0 -75
- package/cli/modules/pulls/list-pulls.js +0 -75
- package/cli/modules/pulls/merge-pull.js +0 -77
- package/cli/modules/pulls/patch-pull-comment.js +0 -79
- package/cli/modules/pulls/patch-pull.js +0 -77
- package/cli/modules/pulls/post-pull-assignees.js +0 -77
- package/cli/modules/pulls/post-pull-comment.js +0 -77
- package/cli/modules/pulls/post-pull-labels.js +0 -77
- package/cli/modules/pulls/post-pull-request-review-reply.js +0 -79
- package/cli/modules/pulls/post-pull-review.js +0 -77
- package/cli/modules/pulls/post-pull.js +0 -69
- package/cli/modules/pulls/put-pull-labels.js +0 -77
- package/cli/modules/pulls/upload-files.js +0 -69
- package/cli/modules/pulls/upload-imgs.js +0 -69
- package/cli/modules/rank/get-language-list.js +0 -71
- package/cli/modules/rank/get-repo-annual-rank.js +0 -71
- package/cli/modules/rank/get-repo-daily-rank.js +0 -71
- package/cli/modules/rank/get-repo-monthly-rank.js +0 -71
- package/cli/modules/rank/get-repo-weekly-rank.js +0 -71
- package/cli/modules/registries/delete-package-tag.js +0 -79
- package/cli/modules/registries/delete-package.js +0 -77
- package/cli/modules/registries/delete-registry.js +0 -66
- package/cli/modules/registries/get-group-sub-registries.js +0 -75
- package/cli/modules/registries/get-package-tag-detail.js +0 -82
- package/cli/modules/registries/get-package-tag-provenance.js +0 -79
- package/cli/modules/registries/get-package.js +0 -77
- package/cli/modules/registries/list-package-tags.js +0 -80
- package/cli/modules/registries/list-packages.js +0 -76
- package/cli/modules/registries/set-registry-visibility.js +0 -75
- package/cli/modules/releases/delete-release-asset.js +0 -76
- package/cli/modules/releases/delete-release.js +0 -74
- package/cli/modules/releases/get-latest-release.js +0 -66
- package/cli/modules/releases/get-release-asset.js +0 -76
- package/cli/modules/releases/get-release-by-id.js +0 -74
- package/cli/modules/releases/get-release-by-tag.js +0 -74
- package/cli/modules/releases/get-releases-asset.js +0 -79
- package/cli/modules/releases/list-releases.js +0 -75
- package/cli/modules/releases/patch-release.js +0 -77
- package/cli/modules/releases/post-release-asset-upload-confirmation.js +0 -81
- package/cli/modules/releases/post-release-asset-upload-url.js +0 -77
- package/cli/modules/releases/post-release.js +0 -69
- package/cli/modules/repo-code-issue/get-code-issue-detail-open-api.js +0 -75
- package/cli/modules/repo-code-issue/list-code-issue-open-api.js +0 -76
- package/cli/modules/repo-contributor/get-repo-contributor-trend.js +0 -75
- package/cli/modules/repo-labels/delete-label.js +0 -74
- package/cli/modules/repo-labels/list-labels.js +0 -75
- package/cli/modules/repo-labels/patch-label.js +0 -77
- package/cli/modules/repo-labels/post-label.js +0 -69
- package/cli/modules/repositories/archive-repo.js +0 -66
- package/cli/modules/repositories/create-repo.js +0 -69
- package/cli/modules/repositories/delete-repo.js +0 -66
- package/cli/modules/repositories/get-by-id.js +0 -66
- package/cli/modules/repositories/get-group-sub-repos.js +0 -75
- package/cli/modules/repositories/get-pinned-repo-by-group.js +0 -66
- package/cli/modules/repositories/get-pinned-repo-by-id.js +0 -66
- package/cli/modules/repositories/get-repos-by-user-name.js +0 -75
- package/cli/modules/repositories/get-repos.js +0 -71
- package/cli/modules/repositories/list-forks-repos.js +0 -75
- package/cli/modules/repositories/set-pinned-repo-by-group.js +0 -69
- package/cli/modules/repositories/set-repo-visibility.js +0 -75
- package/cli/modules/repositories/transfer-repo.js +0 -69
- package/cli/modules/repositories/un-archive-repo.js +0 -66
- package/cli/modules/repositories/update-repo.js +0 -69
- package/cli/modules/search/list-public-repos.js +0 -71
- package/cli/modules/security/get-repo-security-overview.js +0 -75
- package/cli/modules/starring/get-user-all-stared-repos.js +0 -71
- package/cli/modules/starring/get-user-stared-repos.js +0 -75
- package/cli/modules/starring/list-star-users.js +0 -75
- package/cli/modules/users/auto-complete-source.js +0 -71
- package/cli/modules/users/get-user-info-by-name.js +0 -66
- package/cli/modules/users/get-user-info.js +0 -62
- package/cli/modules/users/list-email.js +0 -62
- package/cli/modules/users/list-gpg-keys.js +0 -71
- package/cli/modules/users/update-user-info.js +0 -65
- package/cli/modules/workspace/delete-workspace.js +0 -65
- package/cli/modules/workspace/get-workspace-detail.js +0 -74
- package/cli/modules/workspace/list-workspaces.js +0 -71
- package/cli/modules/workspace/start-workspace.js +0 -69
- package/cli/modules/workspace/workspace-stop.js +0 -65
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _core = _interopRequireDefault(require("../../core/core.js"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
// @ts-nocheck
|
|
10
|
-
/* tslint:disable */
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
/*
|
|
13
|
-
* -------------------------------------------------------------------------
|
|
14
|
-
* ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ##
|
|
15
|
-
* ## ##
|
|
16
|
-
* ## AUTHOR: bapelin ##
|
|
17
|
-
* ## SOURCE: https://cnb.cool/cnb/skills/cnb-api-generate ##
|
|
18
|
-
* -------------------------------------------------------------------------
|
|
19
|
-
* @Source /{repo}/-/settings/branch-protections/{id}
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description getBranchProtection request params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description Other reuqest params
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description GetBranchProtectionRes Success Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description GetBranchProtectionError Error Response Type
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
40
|
-
* repo-manage:r
|
|
41
|
-
* @tags GitSettings
|
|
42
|
-
* @name getBranchProtection
|
|
43
|
-
* @summary 查询仓库保护分支规则。Get branch protection rule.
|
|
44
|
-
* @request get:/{repo}/-/settings/branch-protections/{id}
|
|
45
|
-
|
|
46
|
-
----------------------------------
|
|
47
|
-
* @param {GetBranchProtectionParams} arg0 - getBranchProtection request params
|
|
48
|
-
* @param {RequestConfig} arg1 - Other reuqest params
|
|
49
|
-
*/
|
|
50
|
-
async function _default({
|
|
51
|
-
repo,
|
|
52
|
-
id
|
|
53
|
-
}, {
|
|
54
|
-
req,
|
|
55
|
-
options,
|
|
56
|
-
...axiosConfig
|
|
57
|
-
} = {}) {
|
|
58
|
-
return await _core.default.request({
|
|
59
|
-
...axiosConfig,
|
|
60
|
-
_next_req: req,
|
|
61
|
-
options: options,
|
|
62
|
-
url: `/${repo}/-/settings/branch-protections/${id}`,
|
|
63
|
-
_apiTag: "/{repo}/-/settings/branch-protections/{id}",
|
|
64
|
-
method: "get",
|
|
65
|
-
_originParams: {
|
|
66
|
-
method: "get",
|
|
67
|
-
_apiTag: "/{repo}/-/settings/branch-protections/{id}",
|
|
68
|
-
path: {
|
|
69
|
-
repo,
|
|
70
|
-
id
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _core = _interopRequireDefault(require("../../core/core.js"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
// @ts-nocheck
|
|
10
|
-
/* tslint:disable */
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
/*
|
|
13
|
-
* -------------------------------------------------------------------------
|
|
14
|
-
* ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ##
|
|
15
|
-
* ## ##
|
|
16
|
-
* ## AUTHOR: bapelin ##
|
|
17
|
-
* ## SOURCE: https://cnb.cool/cnb/skills/cnb-api-generate ##
|
|
18
|
-
* -------------------------------------------------------------------------
|
|
19
|
-
* @Source /{repo}/-/settings/cloud-native-build
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description Other reuqest params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description GetPipelineSettingsRes Success Response Type
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description GetPipelineSettingsError Error Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
36
|
-
* repo-manage:r
|
|
37
|
-
* @tags GitSettings
|
|
38
|
-
* @name getPipelineSettings
|
|
39
|
-
* @summary 查询仓库云原生构建设置。List pipeline settings.
|
|
40
|
-
* @request get:/{repo}/-/settings/cloud-native-build
|
|
41
|
-
|
|
42
|
-
----------------------------------
|
|
43
|
-
* @param {string} arg0
|
|
44
|
-
* @param {RequestConfig} arg1 - Other reuqest params
|
|
45
|
-
*/
|
|
46
|
-
async function _default(repo, {
|
|
47
|
-
req,
|
|
48
|
-
options,
|
|
49
|
-
...axiosConfig
|
|
50
|
-
} = {}) {
|
|
51
|
-
return await _core.default.request({
|
|
52
|
-
...axiosConfig,
|
|
53
|
-
_next_req: req,
|
|
54
|
-
options: options,
|
|
55
|
-
url: `/${repo}/-/settings/cloud-native-build`,
|
|
56
|
-
_apiTag: "/{repo}/-/settings/cloud-native-build",
|
|
57
|
-
method: "get",
|
|
58
|
-
_originParams: {
|
|
59
|
-
method: "get",
|
|
60
|
-
_apiTag: "/{repo}/-/settings/cloud-native-build",
|
|
61
|
-
path: {
|
|
62
|
-
repo
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _core = _interopRequireDefault(require("../../core/core.js"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
// @ts-nocheck
|
|
10
|
-
/* tslint:disable */
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
/*
|
|
13
|
-
* -------------------------------------------------------------------------
|
|
14
|
-
* ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ##
|
|
15
|
-
* ## ##
|
|
16
|
-
* ## AUTHOR: bapelin ##
|
|
17
|
-
* ## SOURCE: https://cnb.cool/cnb/skills/cnb-api-generate ##
|
|
18
|
-
* -------------------------------------------------------------------------
|
|
19
|
-
* @Source /{repo}/-/settings/pull-request
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description Other reuqest params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description GetPullRequestSettingsRes Success Response Type
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description GetPullRequestSettingsError Error Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
36
|
-
* repo-manage:r
|
|
37
|
-
* @tags GitSettings
|
|
38
|
-
* @name getPullRequestSettings
|
|
39
|
-
* @summary 查询仓库合并请求设置。List pull request settings.
|
|
40
|
-
* @request get:/{repo}/-/settings/pull-request
|
|
41
|
-
|
|
42
|
-
----------------------------------
|
|
43
|
-
* @param {string} arg0
|
|
44
|
-
* @param {RequestConfig} arg1 - Other reuqest params
|
|
45
|
-
*/
|
|
46
|
-
async function _default(repo, {
|
|
47
|
-
req,
|
|
48
|
-
options,
|
|
49
|
-
...axiosConfig
|
|
50
|
-
} = {}) {
|
|
51
|
-
return await _core.default.request({
|
|
52
|
-
...axiosConfig,
|
|
53
|
-
_next_req: req,
|
|
54
|
-
options: options,
|
|
55
|
-
url: `/${repo}/-/settings/pull-request`,
|
|
56
|
-
_apiTag: "/{repo}/-/settings/pull-request",
|
|
57
|
-
method: "get",
|
|
58
|
-
_originParams: {
|
|
59
|
-
method: "get",
|
|
60
|
-
_apiTag: "/{repo}/-/settings/pull-request",
|
|
61
|
-
path: {
|
|
62
|
-
repo
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _core = _interopRequireDefault(require("../../core/core.js"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
// @ts-nocheck
|
|
10
|
-
/* tslint:disable */
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
/*
|
|
13
|
-
* -------------------------------------------------------------------------
|
|
14
|
-
* ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ##
|
|
15
|
-
* ## ##
|
|
16
|
-
* ## AUTHOR: bapelin ##
|
|
17
|
-
* ## SOURCE: https://cnb.cool/cnb/skills/cnb-api-generate ##
|
|
18
|
-
* -------------------------------------------------------------------------
|
|
19
|
-
* @Source /{repo}/-/settings/push-limit
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description Other reuqest params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description GetPushLimitSettingsRes Success Response Type
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description GetPushLimitSettingsError Error Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
36
|
-
* repo-manage:r
|
|
37
|
-
* @tags GitSettings
|
|
38
|
-
* @name getPushLimitSettings
|
|
39
|
-
* @summary 查询仓库推送设置。List push limit settings.
|
|
40
|
-
* @request get:/{repo}/-/settings/push-limit
|
|
41
|
-
|
|
42
|
-
----------------------------------
|
|
43
|
-
* @param {string} arg0
|
|
44
|
-
* @param {RequestConfig} arg1 - Other reuqest params
|
|
45
|
-
*/
|
|
46
|
-
async function _default(repo, {
|
|
47
|
-
req,
|
|
48
|
-
options,
|
|
49
|
-
...axiosConfig
|
|
50
|
-
} = {}) {
|
|
51
|
-
return await _core.default.request({
|
|
52
|
-
...axiosConfig,
|
|
53
|
-
_next_req: req,
|
|
54
|
-
options: options,
|
|
55
|
-
url: `/${repo}/-/settings/push-limit`,
|
|
56
|
-
_apiTag: "/{repo}/-/settings/push-limit",
|
|
57
|
-
method: "get",
|
|
58
|
-
_originParams: {
|
|
59
|
-
method: "get",
|
|
60
|
-
_apiTag: "/{repo}/-/settings/push-limit",
|
|
61
|
-
path: {
|
|
62
|
-
repo
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _core = _interopRequireDefault(require("../../core/core.js"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
// @ts-nocheck
|
|
10
|
-
/* tslint:disable */
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
/*
|
|
13
|
-
* -------------------------------------------------------------------------
|
|
14
|
-
* ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ##
|
|
15
|
-
* ## ##
|
|
16
|
-
* ## AUTHOR: bapelin ##
|
|
17
|
-
* ## SOURCE: https://cnb.cool/cnb/skills/cnb-api-generate ##
|
|
18
|
-
* -------------------------------------------------------------------------
|
|
19
|
-
* @Source /{repo}/-/settings/branch-protections
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description Other reuqest params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description ListBranchProtectionsRes Success Response Type
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description ListBranchProtectionsError Error Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
36
|
-
* repo-manage:r
|
|
37
|
-
* @tags GitSettings
|
|
38
|
-
* @name listBranchProtections
|
|
39
|
-
* @summary 查询仓库保护分支规则列表。List branch protection rules.
|
|
40
|
-
* @request get:/{repo}/-/settings/branch-protections
|
|
41
|
-
|
|
42
|
-
----------------------------------
|
|
43
|
-
* @param {string} arg0
|
|
44
|
-
* @param {RequestConfig} arg1 - Other reuqest params
|
|
45
|
-
*/
|
|
46
|
-
async function _default(repo, {
|
|
47
|
-
req,
|
|
48
|
-
options,
|
|
49
|
-
...axiosConfig
|
|
50
|
-
} = {}) {
|
|
51
|
-
return await _core.default.request({
|
|
52
|
-
...axiosConfig,
|
|
53
|
-
_next_req: req,
|
|
54
|
-
options: options,
|
|
55
|
-
url: `/${repo}/-/settings/branch-protections`,
|
|
56
|
-
_apiTag: "/{repo}/-/settings/branch-protections",
|
|
57
|
-
method: "get",
|
|
58
|
-
_originParams: {
|
|
59
|
-
method: "get",
|
|
60
|
-
_apiTag: "/{repo}/-/settings/branch-protections",
|
|
61
|
-
path: {
|
|
62
|
-
repo
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _core = _interopRequireDefault(require("../../core/core.js"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
// @ts-nocheck
|
|
10
|
-
/* tslint:disable */
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
/*
|
|
13
|
-
* -------------------------------------------------------------------------
|
|
14
|
-
* ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ##
|
|
15
|
-
* ## ##
|
|
16
|
-
* ## AUTHOR: bapelin ##
|
|
17
|
-
* ## SOURCE: https://cnb.cool/cnb/skills/cnb-api-generate ##
|
|
18
|
-
* -------------------------------------------------------------------------
|
|
19
|
-
* @Source /{repo}/-/settings/branch-protections/{id}
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description patchBranchProtection request params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description Other reuqest params
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description PatchBranchProtectionRes Success Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description PatchBranchProtectionError Error Response Type
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
40
|
-
* repo-manage:rw
|
|
41
|
-
* @tags GitSettings
|
|
42
|
-
* @name patchBranchProtection
|
|
43
|
-
* @summary 更新仓库保护分支规则。Update branch protection rule.
|
|
44
|
-
* @request patch:/{repo}/-/settings/branch-protections/{id}
|
|
45
|
-
|
|
46
|
-
----------------------------------
|
|
47
|
-
* @param {PatchBranchProtectionParams} arg0 - patchBranchProtection request params
|
|
48
|
-
* @param {ApiBranchProtection} arg1
|
|
49
|
-
* @param {RequestConfig} arg2 - Other reuqest params
|
|
50
|
-
*/
|
|
51
|
-
async function _default({
|
|
52
|
-
repo,
|
|
53
|
-
id
|
|
54
|
-
}, branch_protection_form, {
|
|
55
|
-
req,
|
|
56
|
-
options,
|
|
57
|
-
...axiosConfig
|
|
58
|
-
} = {}) {
|
|
59
|
-
return await _core.default.request({
|
|
60
|
-
...axiosConfig,
|
|
61
|
-
_next_req: req,
|
|
62
|
-
options: options,
|
|
63
|
-
url: `/${repo}/-/settings/branch-protections/${id}`,
|
|
64
|
-
_apiTag: "/{repo}/-/settings/branch-protections/{id}",
|
|
65
|
-
method: "patch",
|
|
66
|
-
data: branch_protection_form,
|
|
67
|
-
_originParams: {
|
|
68
|
-
method: "patch",
|
|
69
|
-
_apiTag: "/{repo}/-/settings/branch-protections/{id}",
|
|
70
|
-
path: {
|
|
71
|
-
repo,
|
|
72
|
-
id
|
|
73
|
-
},
|
|
74
|
-
body: branch_protection_form
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _core = _interopRequireDefault(require("../../core/core.js"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
// @ts-nocheck
|
|
10
|
-
/* tslint:disable */
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
/*
|
|
13
|
-
* -------------------------------------------------------------------------
|
|
14
|
-
* ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ##
|
|
15
|
-
* ## ##
|
|
16
|
-
* ## AUTHOR: bapelin ##
|
|
17
|
-
* ## SOURCE: https://cnb.cool/cnb/skills/cnb-api-generate ##
|
|
18
|
-
* -------------------------------------------------------------------------
|
|
19
|
-
* @Source /{repo}/-/settings/branch-protections
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description Other reuqest params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description PostBranchProtectionRes Success Response Type
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description PostBranchProtectionError Error Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
36
|
-
* repo-manage:rw
|
|
37
|
-
* @tags GitSettings
|
|
38
|
-
* @name postBranchProtection
|
|
39
|
-
* @summary 新增仓库保护分支规则。Create branch protection rule.
|
|
40
|
-
* @request post:/{repo}/-/settings/branch-protections
|
|
41
|
-
|
|
42
|
-
----------------------------------
|
|
43
|
-
* @param {string} arg0
|
|
44
|
-
* @param {ApiBranchProtection} arg1
|
|
45
|
-
* @param {RequestConfig} arg2 - Other reuqest params
|
|
46
|
-
*/
|
|
47
|
-
async function _default(repo, branch_protection_form, {
|
|
48
|
-
req,
|
|
49
|
-
options,
|
|
50
|
-
...axiosConfig
|
|
51
|
-
} = {}) {
|
|
52
|
-
return await _core.default.request({
|
|
53
|
-
...axiosConfig,
|
|
54
|
-
_next_req: req,
|
|
55
|
-
options: options,
|
|
56
|
-
url: `/${repo}/-/settings/branch-protections`,
|
|
57
|
-
_apiTag: "/{repo}/-/settings/branch-protections",
|
|
58
|
-
method: "post",
|
|
59
|
-
data: branch_protection_form,
|
|
60
|
-
_originParams: {
|
|
61
|
-
method: "post",
|
|
62
|
-
_apiTag: "/{repo}/-/settings/branch-protections",
|
|
63
|
-
path: {
|
|
64
|
-
repo
|
|
65
|
-
},
|
|
66
|
-
body: branch_protection_form
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _core = _interopRequireDefault(require("../../core/core.js"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
// @ts-nocheck
|
|
10
|
-
/* tslint:disable */
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
/*
|
|
13
|
-
* -------------------------------------------------------------------------
|
|
14
|
-
* ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ##
|
|
15
|
-
* ## ##
|
|
16
|
-
* ## AUTHOR: bapelin ##
|
|
17
|
-
* ## SOURCE: https://cnb.cool/cnb/skills/cnb-api-generate ##
|
|
18
|
-
* -------------------------------------------------------------------------
|
|
19
|
-
* @Source /{repo}/-/settings/cloud-native-build
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description Other reuqest params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description PutPipelineSettingsRes Success Response Type
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description PutPipelineSettingsError Error Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
36
|
-
* repo-manage:rw
|
|
37
|
-
* @tags GitSettings
|
|
38
|
-
* @name putPipelineSettings
|
|
39
|
-
* @summary 更新仓库云原生构建设置。Update pipeline settings.
|
|
40
|
-
* @request put:/{repo}/-/settings/cloud-native-build
|
|
41
|
-
|
|
42
|
-
----------------------------------
|
|
43
|
-
* @param {string} arg0
|
|
44
|
-
* @param {ApiPipelineSettings} arg1
|
|
45
|
-
* @param {RequestConfig} arg2 - Other reuqest params
|
|
46
|
-
*/
|
|
47
|
-
async function _default(repo, pipeline_form, {
|
|
48
|
-
req,
|
|
49
|
-
options,
|
|
50
|
-
...axiosConfig
|
|
51
|
-
} = {}) {
|
|
52
|
-
return await _core.default.request({
|
|
53
|
-
...axiosConfig,
|
|
54
|
-
_next_req: req,
|
|
55
|
-
options: options,
|
|
56
|
-
url: `/${repo}/-/settings/cloud-native-build`,
|
|
57
|
-
_apiTag: "/{repo}/-/settings/cloud-native-build",
|
|
58
|
-
method: "put",
|
|
59
|
-
data: pipeline_form,
|
|
60
|
-
_originParams: {
|
|
61
|
-
method: "put",
|
|
62
|
-
_apiTag: "/{repo}/-/settings/cloud-native-build",
|
|
63
|
-
path: {
|
|
64
|
-
repo
|
|
65
|
-
},
|
|
66
|
-
body: pipeline_form
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _core = _interopRequireDefault(require("../../core/core.js"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
// @ts-nocheck
|
|
10
|
-
/* tslint:disable */
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
/*
|
|
13
|
-
* -------------------------------------------------------------------------
|
|
14
|
-
* ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ##
|
|
15
|
-
* ## ##
|
|
16
|
-
* ## AUTHOR: bapelin ##
|
|
17
|
-
* ## SOURCE: https://cnb.cool/cnb/skills/cnb-api-generate ##
|
|
18
|
-
* -------------------------------------------------------------------------
|
|
19
|
-
* @Source /{repo}/-/settings/pull-request
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description Other reuqest params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description PutPullRequestSettingsRes Success Response Type
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description PutPullRequestSettingsError Error Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
36
|
-
* repo-manage:rw
|
|
37
|
-
* @tags GitSettings
|
|
38
|
-
* @name putPullRequestSettings
|
|
39
|
-
* @summary 更新仓库合并请求设置。Set pull request settings.
|
|
40
|
-
* @request put:/{repo}/-/settings/pull-request
|
|
41
|
-
|
|
42
|
-
----------------------------------
|
|
43
|
-
* @param {string} arg0
|
|
44
|
-
* @param {ApiPullRequestSettings} arg1
|
|
45
|
-
* @param {RequestConfig} arg2 - Other reuqest params
|
|
46
|
-
*/
|
|
47
|
-
async function _default(repo, pull_request_form, {
|
|
48
|
-
req,
|
|
49
|
-
options,
|
|
50
|
-
...axiosConfig
|
|
51
|
-
} = {}) {
|
|
52
|
-
return await _core.default.request({
|
|
53
|
-
...axiosConfig,
|
|
54
|
-
_next_req: req,
|
|
55
|
-
options: options,
|
|
56
|
-
url: `/${repo}/-/settings/pull-request`,
|
|
57
|
-
_apiTag: "/{repo}/-/settings/pull-request",
|
|
58
|
-
method: "put",
|
|
59
|
-
data: pull_request_form,
|
|
60
|
-
_originParams: {
|
|
61
|
-
method: "put",
|
|
62
|
-
_apiTag: "/{repo}/-/settings/pull-request",
|
|
63
|
-
path: {
|
|
64
|
-
repo
|
|
65
|
-
},
|
|
66
|
-
body: pull_request_form
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = _default;
|
|
7
|
-
var _core = _interopRequireDefault(require("../../core/core.js"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
// @ts-nocheck
|
|
10
|
-
/* tslint:disable */
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
/*
|
|
13
|
-
* -------------------------------------------------------------------------
|
|
14
|
-
* ## THIS FILE WAS GENERATED VIA CNB-API-GENERATE ##
|
|
15
|
-
* ## ##
|
|
16
|
-
* ## AUTHOR: bapelin ##
|
|
17
|
-
* ## SOURCE: https://cnb.cool/cnb/skills/cnb-api-generate ##
|
|
18
|
-
* -------------------------------------------------------------------------
|
|
19
|
-
* @Source /{repo}/-/settings/push-limit
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description Other reuqest params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description PutPushLimitSettingsRes Success Response Type
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description PutPushLimitSettingsError Error Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
36
|
-
* repo-manage:rw
|
|
37
|
-
* @tags GitSettings
|
|
38
|
-
* @name putPushLimitSettings
|
|
39
|
-
* @summary 设置仓库推送设置。Set push limit settings.
|
|
40
|
-
* @request put:/{repo}/-/settings/push-limit
|
|
41
|
-
|
|
42
|
-
----------------------------------
|
|
43
|
-
* @param {string} arg0
|
|
44
|
-
* @param {ApiPushLimitSettings} arg1
|
|
45
|
-
* @param {RequestConfig} arg2 - Other reuqest params
|
|
46
|
-
*/
|
|
47
|
-
async function _default(repo, push_limit_form, {
|
|
48
|
-
req,
|
|
49
|
-
options,
|
|
50
|
-
...axiosConfig
|
|
51
|
-
} = {}) {
|
|
52
|
-
return await _core.default.request({
|
|
53
|
-
...axiosConfig,
|
|
54
|
-
_next_req: req,
|
|
55
|
-
options: options,
|
|
56
|
-
url: `/${repo}/-/settings/push-limit`,
|
|
57
|
-
_apiTag: "/{repo}/-/settings/push-limit",
|
|
58
|
-
method: "put",
|
|
59
|
-
data: push_limit_form,
|
|
60
|
-
_originParams: {
|
|
61
|
-
method: "put",
|
|
62
|
-
_apiTag: "/{repo}/-/settings/push-limit",
|
|
63
|
-
path: {
|
|
64
|
-
repo
|
|
65
|
-
},
|
|
66
|
-
body: push_limit_form
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|