-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Code Review Action: openlibrary-bot-driven PR review (Copilot replacement) #13163
Copy link
Copy link
Closed
Closed
Copy link
Labels
Affects: ConfigurationRelated to the configuration of the dev/staging/prod environments, CI, docker, etc. [managed]Related to the configuration of the dev/staging/prod environments, CI, docker, etc. [managed]Needs: InvestigationThis issue/PR needs a root-cause analysis to determine a solution. [managed]This issue/PR needs a root-cause analysis to determine a solution. [managed]Needs: LeadNeeds: Staff / InternalReviewed a PR but don't have merge powers? Use this.Reviewed a PR but don't have merge powers? Use this.Theme: BotsIssues relating to Bots & data cleanupIssues relating to Bots & data cleanupType: Feature RequestIssue describes a feature or enhancement we'd like to implement. [managed]Issue describes a feature or enhancement we'd like to implement. [managed]Type: Subtask of EpicA subtask that is part of the work breakdown of an epic issue (see comments). [managed]A subtask that is part of the work breakdown of an epic issue (see comments). [managed]
Description
Metadata
Metadata
Assignees
Labels
Affects: ConfigurationRelated to the configuration of the dev/staging/prod environments, CI, docker, etc. [managed]Related to the configuration of the dev/staging/prod environments, CI, docker, etc. [managed]Needs: InvestigationThis issue/PR needs a root-cause analysis to determine a solution. [managed]This issue/PR needs a root-cause analysis to determine a solution. [managed]Needs: LeadNeeds: Staff / InternalReviewed a PR but don't have merge powers? Use this.Reviewed a PR but don't have merge powers? Use this.Theme: BotsIssues relating to Bots & data cleanupIssues relating to Bots & data cleanupType: Feature RequestIssue describes a feature or enhancement we'd like to implement. [managed]Issue describes a feature or enhancement we'd like to implement. [managed]Type: Subtask of EpicA subtask that is part of the work breakdown of an epic issue (see comments). [managed]A subtask that is part of the work breakdown of an epic issue (see comments). [managed]
Type
Fields
No fields configured for issues without a type.
Summary
Build a GitHub Action, using the same Claude-token pattern as issue enrichment (#13075) and the planned PR auto-responder (#13162), that gives PRs an automated code review similar to what GitHub Copilot used to provide before free Copilot credits for OSS maintainers were discontinued. Sub-task of #13160.
Trigger
When
@openlibrary-botis added a PR reviewer, orStaff-only, for security:
@openlibrary-botdirectly in a PR commentThe permission-gate bypass problem found in #13161 hopefully doesn't apply here, but should be verified once this is built rather than assumed. It should work at least for me...
Behavior
<!-- ol-pr-bot -->-style idempotency marker convention already used inpr-prereview.md.openlibrary-bot's own prior comments/actions when re-triggered, to avoid the same class of feedback-loop bug asopenlibrary-botcomments trigger "Needs: Response" labeling #13138.pmrepoAGENTS.md) — the gap being closed here is automation transport, not review logic. Findings should follow the same safety rules aspr-prereview.md(no value judgments, never mention Claude/Anthropic, idempotency guard).Research needed before design
gh api/claude-code-actionvs. what needs a custom script.anthropics/claude-code-actionsupports posting line-anchored review comments natively, or whether this needs direct GitHub Review API calls (POST /repos/{owner}/{repo}/pulls/{pull_number}/reviewswithcomments[]) wrapped around it.Related
openlibrary-botcomments trigger "Needs: Response" labeling #13138 — bot-comment feedback-loop bug (ignore-openlibrary-bot's-own-actions class)