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:
co-authored by
Claude Fable 5
parent
ed4b347cab
commit
7416df88c9
@@ -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`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user