implement change provider#141
Merged
Merged
Conversation
d7a7fd0 to
786d46c
Compare
786d46c to
50e8544
Compare
…ration - Add ChangeProvider interface and GitHub implementation - Use Client wrapper pattern with configurable auth - Add tests for the change provider
50e8544 to
d12205d
Compare
bearerTransport with oath
533ff1f to
c9eac59
Compare
behinddwalls
approved these changes
Mar 13, 2026
22e4e64 to
008f7d2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The orchestrator can now fetch rich metadata about a code change directly from GitHub — including the author, changed files (with line-level add/delete/modify counts and patches), and the head commit SHA — at validation time. This gives downstream controllers the information they need to make decisions based on what a PR actually touches, rather than just its identity.
The implementation supports stacked PRs by returning one ChangeInfo per URI in a Change, and handles large PRs transparently via GraphQL pagination. Authentication and endpoint configuration are injected via environment variables, making it compatible with both github.com and GitHub Enterprise.
Test Plan
Unit tests cover Client URL construction, GraphQL pagination, URI validation, and provider behavior with a mock HTTP server.
Issues