adr check: find the author of a status change as the forge PR author #655

Open
opened 2026-09-29 16:37:15 +00:00 by hexajon · 0 comments
Owner

What to build

For each decided record, find the commit that set its status, then the PR that merged that commit, through the forge's commit-to-PR endpoint (GetCommitPR, internal/gitea/client_branchedit.go:35). The PR author is the author of the status change. When no PR exists, the author is unknown, and the check accepts a sign-off token from any contributor.

The lookup must pass the full commit hash. This repo uses SHA-256 object IDs, and the endpoint returns 404 for a short hash.

Acceptance

Tests against the live forge API and a test repo: a status set in a PR gives that PR's author; a short hash is expanded; a commit with no PR gives no author.

## What to build For each decided record, find the commit that set its status, then the PR that merged that commit, through the forge's commit-to-PR endpoint (`GetCommitPR`, `internal/gitea/client_branchedit.go:35`). The PR author is the author of the status change. When no PR exists, the author is unknown, and the check accepts a sign-off token from any contributor. The lookup must pass the full commit hash. This repo uses SHA-256 object IDs, and the endpoint returns 404 for a short hash. ## Acceptance Tests against the live forge API and a test repo: a status set in a PR gives that PR's author; a short hash is expanded; a commit with no PR gives no author.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
sixfold-space/madtea#655
No description provided.