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

This commit is contained in:
gitea-actions[bot]
2026-09-01 00:10:00 +00:00
parent 7b8cf10d4e
commit 786aca816c
+5 -5
View File
@@ -7377,7 +7377,7 @@ var MediaTypes;
})(MediaTypes || (exports.MediaTypes = 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));
@@ -7737,7 +7737,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);
@@ -9331,7 +9331,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) {
@@ -9532,7 +9532,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));
@@ -9838,7 +9838,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);