feat: pull PR commits for Co-Authored-By attribution on PR reviews

PR webhooks only carry title/body; fetch /pulls/{i}/commits so the
trailer ledger and per-agent digests attribute PR reviews correctly.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
Nirav Patel
2026-08-18 23:52:43 -04:00
co-authored by Claude Fable 5
parent ed4b347cab
commit 7416df88c9
2 changed files with 16 additions and 0 deletions
+4
View File
@@ -65,6 +65,10 @@ export class GiteaClient {
});
}
getPrCommits(owner, repo, index) {
return this.req('GET', `/api/v1/repos/${owner}/${repo}/pulls/${index}/commits?limit=50`);
}
getCommit(owner, repo, sha) {
return this.req('GET', `/api/v1/repos/${owner}/${repo}/git/commits/${sha}?stat=false&verification=false&files=false`);
}