replace api.github.com to gitea.cn/api/v1

This commit is contained in:
gitea-actions[bot] 2024-08-25 04:23:58 +00:00
parent 93397bea11
commit 0e0674b993
1 changed files with 5 additions and 5 deletions

10
dist/setup/index.js vendored
View File

@ -6346,7 +6346,7 @@ var MediaTypes;
})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));
/**
* Returns the proxy URL, depending upon the supplied url and proxy environment variables.
* @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
* @param serverUrl The server URL where the request will be sent. For example, https://gitea.cn/api/v1
*/
function getProxyUrl(serverUrl) {
const proxyUrl = pm.getProxyUrl(new URL(serverUrl));
@ -6693,7 +6693,7 @@ class HttpClient {
/**
* Gets an http agent. This function is useful when you need an http agent that handles
* routing through a proxy server - depending upon the url and proxy environment variables.
* @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
* @param serverUrl The server URL where the request will be sent. For example, https://gitea.cn/api/v1
*/
getAgent(serverUrl) {
const parsedUrl = new URL(serverUrl);
@ -8224,7 +8224,7 @@ exports.findAllVersions = findAllVersions;
function getManifestFromRepo(owner, repo, auth, branch = 'master') {
return __awaiter(this, void 0, void 0, function* () {
let releases = [];
const treeUrl = `https://api.github.com/repos/${owner}/${repo}/git/trees/${branch}`;
const treeUrl = `https://gitea.cn/api/v1/repos/${owner}/${repo}/git/trees/${branch}`;
const http = new httpm.HttpClient('tool-cache');
const headers = {};
if (auth) {
@ -8425,7 +8425,7 @@ var MediaTypes;
})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}));
/**
* Returns the proxy URL, depending upon the supplied url and proxy environment variables.
* @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
* @param serverUrl The server URL where the request will be sent. For example, https://gitea.cn/api/v1
*/
function getProxyUrl(serverUrl) {
let proxyUrl = pm.getProxyUrl(new URL(serverUrl));
@ -8731,7 +8731,7 @@ class HttpClient {
/**
* Gets an http agent. This function is useful when you need an http agent that handles
* routing through a proxy server - depending upon the url and proxy environment variables.
* @param serverUrl The server URL where the request will be sent. For example, https://api.github.com
* @param serverUrl The server URL where the request will be sent. For example, https://gitea.cn/api/v1
*/
getAgent(serverUrl) {
let parsedUrl = new URL(serverUrl);