refactor: rebuild dist
This commit is contained in:
+11
-1
@@ -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;
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user