Oppiabot GitHub client #386
All Vouch review confidence checks passed
Residual risk 0.42 = Change Risk (0.84) × (1 − Review Confidence (0.49)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.84 · 3668 lines diff across 23 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.23 · 3 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.400
Shallow Review Depth
shallow_review_depth
0.269
Mass File Touch
mass_file_touch
0.080
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
4 items
@lkbhitesh07 @U8NWXD PTAL
this PR is third PR after https://github.com/oppia/oppiabot/pull/379 this PR
@lkbhitesh07 PTAL
U8NWXD
Yashbhu
Explanation
This PR adds
OppiabotGitHubClient, the common GitHub API abstraction required by the unified TypeScript-based Oppiabot architecture.Tracked by issue: [#378 (comment)](https://github.com/oppia/oppiabot/issues/378#issue-5584987382)
TDD: [Oppiabot TDD](https://docs.google.com/document/d/1xk6LARVtFoi6xO-EoXSBAXP-vhBYQFvM94KRw1jDb9A/edit?tab=t.0)
Changes
OppiabotGitHubClientand the GitHub operations required by the migrated workflows.GitHubApiClientas the GitHub API abstraction used byOppiabotGitHubClient.OppiabotGitHubClientErrorfor GitHub API failures while preserving the underlying error as its cause.listIssues,listPullRequests,listPullRequestReviews,listChangedFiles), so scheduled sweeps never see a silently truncated result set.listIssues, matching the legacygetAllOpenIssues()helper; plugins that need pull requests calllistPullRequests.OppiabotGitHubClientandOppiabotGitHubClientErrorthrough the core index.Dry-Run support, Core Engine integration, and plugin execution are handled in subsequent PRs.
Deferred GitHub operations
The TDD's plugin mapping also requires GitHub operations that this PR does not yet expose: setting or updating a commit status (Pass-Key / Commit-Status Checks, Don't-Merge Enforcement), dismissing reviews (Review Dismissal for Late File Changes), updating pull-request information (Title Formatting & Issue Association), and requesting or removing reviewers (Assignment Switching). These are added incrementally through the client in the PRs for the plugins that need them, so no plugin calls Octokit directly.
Stacking
Parent: #379 — Execution Context.
Children: #385 — Core Engine Execution.
New commits (review these)
9ab2d9a,afed177,878fbc7,5a7600a,93aae8b,aee472f,f9aed8b,925cf47,c5d7f57,25e020e,77e1abb,e50bba0,3ed4dd1.Inherited changes (don't re-review)
Replaces closed PR #381.
Checklist