refactor: rebuild dist

This commit is contained in:
Ankio
2023-11-01 13:31:16 +08:00
parent 0e343173ba
commit e86f2bbfce
2 changed files with 12 additions and 2 deletions
Generated Vendored
+11 -1
View File
@@ -1779,7 +1779,7 @@ class GiteaRepository extends BaseRepository_1.BaseRepository {
}); });
}; };
this.url = url || this.defaultUrl; this.url = url || this.defaultUrl;
this.api = (0, gitea_js_1.giteaApi)('https://gitea.com/', { this.api = (0, gitea_js_1.giteaApi)(this.url, {
token: token, token: token,
customFetch: cross_fetch_1.default customFetch: cross_fetch_1.default
}); });
@@ -1901,6 +1901,9 @@ class GiteaRepository extends BaseRepository_1.BaseRepository {
if (response.error === null) { if (response.error === null) {
GiteaRepository.pulls[state].push(...response.data); GiteaRepository.pulls[state].push(...response.data);
} }
else {
core.error(`️ Some errors. ${response.error.message}`);
}
page++; page++;
count += response.data.length; count += response.data.length;
if (response.data.length === 0) if (response.data.length === 0)
@@ -1941,12 +1944,16 @@ class GiteaRepository extends BaseRepository_1.BaseRepository {
prReviews.push(this.mapComment(comment)); prReviews.push(this.mapComment(comment));
} }
} }
else {
core.error(`️ Some errors. ${response.error.message}`);
}
pr.reviews = prReviews; pr.reviews = prReviews;
}); });
} }
getTags(owner, repo, maxTagsToFetch) { getTags(owner, repo, maxTagsToFetch) {
var _a; var _a;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
core.debug(`start to get gitea tag `);
const response = yield this.api.repos.repoListTags(owner, repo, { const response = yield this.api.repos.repoListTags(owner, repo, {
limit: maxTagsToFetch limit: maxTagsToFetch
}); });
@@ -1959,6 +1966,9 @@ class GiteaRepository extends BaseRepository_1.BaseRepository {
}); });
} }
} }
else {
core.error(`️ Some errors. ${response.error.message}`);
}
core.info(`️ Found ${tagsInfo.length} (fetching max: ${maxTagsToFetch}) tags from the GitHub API for ${owner}/${repo}`); core.info(`️ Found ${tagsInfo.length} (fetching max: ${maxTagsToFetch}) tags from the GitHub API for ${owner}/${repo}`);
return tagsInfo; return tagsInfo;
}); });
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long