test: add label e2e coverage and fixture-tier backfill (task 0015)
Some checks failed
CI / test (pull_request) Successful in 50s
CI / test (push) Has been cancelled

This commit was merged in pull request #15.
This commit is contained in:
2026-07-14 07:35:45 -04:00
parent 0bf914cbdd
commit 03937a8f6e
4 changed files with 371 additions and 0 deletions

View File

@@ -250,6 +250,18 @@ export async function fetchOpenPulls(
return (await res.json()) as Record<string, unknown>[];
}
/** Fetch the repository's labels as Gitea returns them, for verifying what a
* label mutation wrote against live state rather than the CLI's own echo. */
export async function fetchLabels(instance: E2EInstance): Promise<Record<string, unknown>[]> {
const res = await apiRequest(
instance.baseUrl,
"GET",
`/repos/${instance.owner}/${instance.repo}/labels`,
instance.token,
);
return (await res.json()) as Record<string, unknown>[];
}
/** Fetch a single issue as Gitea returns it, for verifying what a mutation wrote. */
export async function fetchIssue(
instance: E2EInstance,