@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}/-/git/tags/{tag}
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description deleteTag request params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description Other reuqest params
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description DeleteTagRes Success Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description DeleteTagError Error Response Type
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
40
|
-
* repo-contents:rw
|
|
41
|
-
* @tags Git
|
|
42
|
-
* @name deleteTag
|
|
43
|
-
* @summary 删除指定 tag。Delete the specified tag.
|
|
44
|
-
* @request delete:/{repo}/-/git/tags/{tag}
|
|
45
|
-
|
|
46
|
-
----------------------------------
|
|
47
|
-
* @param {DeleteTagParams} arg0 - deleteTag request params
|
|
48
|
-
* @param {RequestConfig} arg1 - Other reuqest params
|
|
49
|
-
*/
|
|
50
|
-
async function _default({
|
|
51
|
-
repo,
|
|
52
|
-
tag
|
|
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}/-/git/tags/${tag}`,
|
|
63
|
-
_apiTag: "/{repo}/-/git/tags/{tag}",
|
|
64
|
-
method: "delete",
|
|
65
|
-
_originParams: {
|
|
66
|
-
method: "delete",
|
|
67
|
-
_apiTag: "/{repo}/-/git/tags/{tag}",
|
|
68
|
-
path: {
|
|
69
|
-
repo,
|
|
70
|
-
tag
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
@@ -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}/-/git/archive-commit-changed-files/{sha1}
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description getArchiveCommitChangedFiles request params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description Other reuqest params
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description GetArchiveCommitChangedFilesRes Success Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description GetArchiveCommitChangedFilesError Error Response Type
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
40
|
-
* repo-code:r
|
|
41
|
-
* @tags Git
|
|
42
|
-
* @name getArchiveCommitChangedFiles
|
|
43
|
-
* @summary 打包下载 commit 变更文件。Download archive of changed files for a commit.
|
|
44
|
-
* @request get:/{repo}/-/git/archive-commit-changed-files/{sha1}
|
|
45
|
-
|
|
46
|
-
----------------------------------
|
|
47
|
-
* @param {GetArchiveCommitChangedFilesParams} arg0 - getArchiveCommitChangedFiles request params
|
|
48
|
-
* @param {RequestConfig} arg1 - Other reuqest params
|
|
49
|
-
*/
|
|
50
|
-
async function _default({
|
|
51
|
-
repo,
|
|
52
|
-
sha1
|
|
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}/-/git/archive-commit-changed-files/${sha1}`,
|
|
63
|
-
_apiTag: "/{repo}/-/git/archive-commit-changed-files/{sha1}",
|
|
64
|
-
method: "get",
|
|
65
|
-
_originParams: {
|
|
66
|
-
method: "get",
|
|
67
|
-
_apiTag: "/{repo}/-/git/archive-commit-changed-files/{sha1}",
|
|
68
|
-
path: {
|
|
69
|
-
repo,
|
|
70
|
-
sha1
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
@@ -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}/-/git/archive-compare-changed-files/{base_head}
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description getArchiveCompareChangedFiles request params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description Other reuqest params
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description GetArchiveCompareChangedFilesRes Success Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description GetArchiveCompareChangedFilesError Error Response Type
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
40
|
-
* repo-code:r
|
|
41
|
-
* @tags Git
|
|
42
|
-
* @name getArchiveCompareChangedFiles
|
|
43
|
-
* @summary 打包下载两次 ref 之间的变更文件。Download archive of changed files for a compare.
|
|
44
|
-
* @request get:/{repo}/-/git/archive-compare-changed-files/{base_head}
|
|
45
|
-
|
|
46
|
-
----------------------------------
|
|
47
|
-
* @param {GetArchiveCompareChangedFilesParams} arg0 - getArchiveCompareChangedFiles request params
|
|
48
|
-
* @param {RequestConfig} arg1 - Other reuqest params
|
|
49
|
-
*/
|
|
50
|
-
async function _default({
|
|
51
|
-
repo,
|
|
52
|
-
base_head
|
|
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}/-/git/archive-compare-changed-files/${base_head}`,
|
|
63
|
-
_apiTag: "/{repo}/-/git/archive-compare-changed-files/{base_head}",
|
|
64
|
-
method: "get",
|
|
65
|
-
_originParams: {
|
|
66
|
-
method: "get",
|
|
67
|
-
_apiTag: "/{repo}/-/git/archive-compare-changed-files/{base_head}",
|
|
68
|
-
path: {
|
|
69
|
-
repo,
|
|
70
|
-
base_head
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
@@ -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}/-/git/archive/{ref_with_path}
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description getArchive request params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description Other reuqest params
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description GetArchiveRes Success Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description GetArchiveError Error Response Type
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
40
|
-
* repo-code:r
|
|
41
|
-
* @tags Git
|
|
42
|
-
* @name getArchive
|
|
43
|
-
* @summary 下载仓库内容
|
|
44
|
-
* @request get:/{repo}/-/git/archive/{ref_with_path}
|
|
45
|
-
|
|
46
|
-
----------------------------------
|
|
47
|
-
* @param {GetArchiveParams} arg0 - getArchive request params
|
|
48
|
-
* @param {RequestConfig} arg1 - Other reuqest params
|
|
49
|
-
*/
|
|
50
|
-
async function _default({
|
|
51
|
-
repo,
|
|
52
|
-
ref_with_path
|
|
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}/-/git/archive/${ref_with_path}`,
|
|
63
|
-
_apiTag: "/{repo}/-/git/archive/{ref_with_path}",
|
|
64
|
-
method: "get",
|
|
65
|
-
_originParams: {
|
|
66
|
-
method: "get",
|
|
67
|
-
_apiTag: "/{repo}/-/git/archive/{ref_with_path}",
|
|
68
|
-
path: {
|
|
69
|
-
repo,
|
|
70
|
-
ref_with_path
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
@@ -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}/-/git/branches/{branch}
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description getBranch request params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description Other reuqest params
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description GetBranchRes Success Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description GetBranchError Error Response Type
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
40
|
-
* repo-code:r
|
|
41
|
-
* @tags Git
|
|
42
|
-
* @name getBranch
|
|
43
|
-
* @summary 查询指定分支。Get a branch.
|
|
44
|
-
* @request get:/{repo}/-/git/branches/{branch}
|
|
45
|
-
|
|
46
|
-
----------------------------------
|
|
47
|
-
* @param {GetBranchParams} arg0 - getBranch request params
|
|
48
|
-
* @param {RequestConfig} arg1 - Other reuqest params
|
|
49
|
-
*/
|
|
50
|
-
async function _default({
|
|
51
|
-
repo,
|
|
52
|
-
branch
|
|
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}/-/git/branches/${branch}`,
|
|
63
|
-
_apiTag: "/{repo}/-/git/branches/{branch}",
|
|
64
|
-
method: "get",
|
|
65
|
-
_originParams: {
|
|
66
|
-
method: "get",
|
|
67
|
-
_apiTag: "/{repo}/-/git/branches/{branch}",
|
|
68
|
-
path: {
|
|
69
|
-
repo,
|
|
70
|
-
branch
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
@@ -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}/-/git/commit-annotations-in-batch
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description Other reuqest params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description GetCommitAnnotationsInBatchRes Success Response Type
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description GetCommitAnnotationsInBatchError Error Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
36
|
-
* repo-code:r
|
|
37
|
-
* @tags Git
|
|
38
|
-
* @name getCommitAnnotationsInBatch
|
|
39
|
-
* @summary 查询指定 commit 的元数据。Get commit annotations in batch.
|
|
40
|
-
* @request post:/{repo}/-/git/commit-annotations-in-batch
|
|
41
|
-
|
|
42
|
-
----------------------------------
|
|
43
|
-
* @param {string} arg0
|
|
44
|
-
* @param {WebGetCommitAnnotationsInBatchForm} arg1
|
|
45
|
-
* @param {RequestConfig} arg2 - Other reuqest params
|
|
46
|
-
*/
|
|
47
|
-
async function _default(repo, get_commit_annotations_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}/-/git/commit-annotations-in-batch`,
|
|
57
|
-
_apiTag: "/{repo}/-/git/commit-annotations-in-batch",
|
|
58
|
-
method: "post",
|
|
59
|
-
data: get_commit_annotations_form,
|
|
60
|
-
_originParams: {
|
|
61
|
-
method: "post",
|
|
62
|
-
_apiTag: "/{repo}/-/git/commit-annotations-in-batch",
|
|
63
|
-
path: {
|
|
64
|
-
repo
|
|
65
|
-
},
|
|
66
|
-
body: get_commit_annotations_form
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|
|
@@ -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}/-/git/commit-annotations/{sha}
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description getCommitAnnotations request params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description Other reuqest params
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description GetCommitAnnotationsRes Success Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description GetCommitAnnotationsError Error Response Type
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
40
|
-
* repo-code:r
|
|
41
|
-
* @tags Git
|
|
42
|
-
* @name getCommitAnnotations
|
|
43
|
-
* @summary 查询指定 commit 的元数据。Get commit annotations.
|
|
44
|
-
* @request get:/{repo}/-/git/commit-annotations/{sha}
|
|
45
|
-
|
|
46
|
-
----------------------------------
|
|
47
|
-
* @param {GetCommitAnnotationsParams} arg0 - getCommitAnnotations request params
|
|
48
|
-
* @param {RequestConfig} arg1 - Other reuqest params
|
|
49
|
-
*/
|
|
50
|
-
async function _default({
|
|
51
|
-
repo,
|
|
52
|
-
sha
|
|
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}/-/git/commit-annotations/${sha}`,
|
|
63
|
-
_apiTag: "/{repo}/-/git/commit-annotations/{sha}",
|
|
64
|
-
method: "get",
|
|
65
|
-
_originParams: {
|
|
66
|
-
method: "get",
|
|
67
|
-
_apiTag: "/{repo}/-/git/commit-annotations/{sha}",
|
|
68
|
-
path: {
|
|
69
|
-
repo,
|
|
70
|
-
sha
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
@@ -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}/-/git/commit-assets/{sha1}
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description getCommitAssetsBySha request params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description Other reuqest params
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description GetCommitAssetsByShaRes Success Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description GetCommitAssetsByShaError Error Response Type
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
40
|
-
* repo-code:r
|
|
41
|
-
* @tags Git
|
|
42
|
-
* @name getCommitAssetsBySha
|
|
43
|
-
* @summary 查询指定 commit 的附件。List commit assets.
|
|
44
|
-
* @request get:/{repo}/-/git/commit-assets/{sha1}
|
|
45
|
-
|
|
46
|
-
----------------------------------
|
|
47
|
-
* @param {GetCommitAssetsByShaParams} arg0 - getCommitAssetsBySha request params
|
|
48
|
-
* @param {RequestConfig} arg1 - Other reuqest params
|
|
49
|
-
*/
|
|
50
|
-
async function _default({
|
|
51
|
-
repo,
|
|
52
|
-
sha1
|
|
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}/-/git/commit-assets/${sha1}`,
|
|
63
|
-
_apiTag: "/{repo}/-/git/commit-assets/{sha1}",
|
|
64
|
-
method: "get",
|
|
65
|
-
_originParams: {
|
|
66
|
-
method: "get",
|
|
67
|
-
_apiTag: "/{repo}/-/git/commit-assets/{sha1}",
|
|
68
|
-
path: {
|
|
69
|
-
repo,
|
|
70
|
-
sha1
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
@@ -1,79 +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}/-/commit-assets/download/{commit_id}/{filename}
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* @description getCommitAssets request params
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description Other reuqest params
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @description GetCommitAssetsRes Success Response Type
|
|
32
|
-
*/
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description GetCommitAssetsError Error Response Type
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @description 访问令牌调用此接口需包含以下权限。Required permissions for access token.
|
|
40
|
-
* repo-contents:r
|
|
41
|
-
* @tags Git
|
|
42
|
-
* @name getCommitAssets
|
|
43
|
-
* @summary 发起一个获取 commits 附件的请求, 302到有一定效期的下载地址。Get a request to fetch a commit assets and returns 302 redirect to the assets URL with specific valid time.
|
|
44
|
-
* @request get:/{repo}/-/commit-assets/download/{commit_id}/{filename}
|
|
45
|
-
|
|
46
|
-
----------------------------------
|
|
47
|
-
* @param {GetCommitAssetsParams} arg0 - getCommitAssets request params
|
|
48
|
-
* @param {RequestConfig} arg1 - Other reuqest params
|
|
49
|
-
*/
|
|
50
|
-
async function _default({
|
|
51
|
-
repo,
|
|
52
|
-
commit_id,
|
|
53
|
-
filename,
|
|
54
|
-
...query
|
|
55
|
-
}, {
|
|
56
|
-
req,
|
|
57
|
-
options,
|
|
58
|
-
...axiosConfig
|
|
59
|
-
} = {}) {
|
|
60
|
-
return await _core.default.request({
|
|
61
|
-
...axiosConfig,
|
|
62
|
-
_next_req: req,
|
|
63
|
-
options: options,
|
|
64
|
-
url: `/${repo}/-/commit-assets/download/${commit_id}/${filename}`,
|
|
65
|
-
_apiTag: "/{repo}/-/commit-assets/download/{commit_id}/{filename}",
|
|
66
|
-
method: "get",
|
|
67
|
-
params: query,
|
|
68
|
-
_originParams: {
|
|
69
|
-
method: "get",
|
|
70
|
-
_apiTag: "/{repo}/-/commit-assets/download/{commit_id}/{filename}",
|
|
71
|
-
path: {
|
|
72
|
-
repo,
|
|
73
|
-
commit_id,
|
|
74
|
-
filename
|
|
75
|
-
},
|
|
76
|
-
query: query
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
}
|