fix: issues with pagination not resolving correct url templates

This commit is contained in:
2026-05-31 01:43:42 -05:00
parent 2aca1a3aa3
commit 0438688e32
14 changed files with 287 additions and 467 deletions
+5 -5
View File
@@ -187,11 +187,11 @@ export async function main(): Promise<MainResult> {
let defaultBranch: string | undefined;
try {
const repoData = await gitea.rest.repository.repoGet({
owner: repoContext.owner,
repo: repoContext.name,
});
defaultBranch = repoData.data.default_branch;
const repoData = await gitea.request(
"GET /repos/{owner}/{repo}",
{ owner: repoContext.owner, repo: repoContext.name }
);
defaultBranch = (repoData.data as { default_branch?: string }).default_branch;
} catch {
defaultBranch = "main";
}