Repository navigation
refactor(forge): move all GitHub API code into a GitHub adapter - #37
Merged
Merged
Conversation
Every GitHub request (REST, GraphQL, raw files, search), the PR/commit comparison, review comments, issues and github.com links now live in src/forge/github.js. The rest of the app reaches GitHub only through the forge interface in src/forge/index.js (JSDoc typedefs plus the FORGES registry) and gets forge-neutral shapes back, so other forges (GitLab, Gitea, ...) can be added as new adapters. - src/review.js keeps only the comment marker and thread shape; src/issues.js is folded into the adapter (GitHubIssues) and review.js - sources carry `source.forge`; page hashes use `forge.hashKey` (gh=) - pr-files.js takes neutral ChangedFiles - tests/review.js checks every forge implements the interface, spec routing and search query splitting; tests/diff.js goes through the adapter - CLAUDE.md and README layout updated Not forge-neutral yet: tokens and sign-in, the Rust git commands, UI wording. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Every GitHub request (REST, GraphQL, raw files, search), the PR/commit comparison, review comments, issues and github.com links now live in src/forge/github.js. The rest of the app reaches GitHub only through the forge interface in src/forge/index.js (JSDoc typedefs plus the FORGES registry) and gets forge-neutral shapes back, so other forges (GitLab, Gitea, ...) can be added as new adapters.
source.forge; page hashes useforge.hashKey(gh=)Not forge-neutral yet: tokens and sign-in, the Rust git commands, UI wording.