feat: add OpenSpec proposal for gh-client integration#452
Closed
avoidwork wants to merge 3 commits into
Closed
Conversation
- Add proposal.md: motivation for centralized GitHub API client - Add design.md: native fetch approach, factory pattern, error handling - Add specs/gh-client/spec.md: 10 requirements with scenarios - Add tasks.md: 16 tasks across 6 implementation groups
- Add src/gh-client.js: GitHub REST API client with GhClient class
- Factory pattern via createGhClient(config)
- Issue CRUD: createIssue, viewIssue, editIssue, listIssues
- PR CRUD: createPR, viewPR, editPR, listPRs, mergePR
- Comments: createComment
- Auth via GITHUB_TOKEN env var
- Normalized { data, error } return pattern
- Error handling: 401/403/404/429/timeout
- Add tests/unit/gh-client.test.js: 20 unit tests
- Extend src/tools/common.js fetchWithTimeout to accept options and return headers
- Add openspec/specs/gh-client/spec.md: 8 spec requirements
Owner
Author
Implementation Audit Results: gh-client-integrationGoal FulfillmentAll 3 goals addressed:
Spec ComplianceAll 10 spec requirements implemented:
Task CompletionAll 16 tasks completed:
Quality Check
Artifacts
|
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.
Description
Add OpenSpec proposal, design, specs, and task breakdown for the gh-client integration feature. This change introduces a dedicated GitHub REST API client module () using native fetch(), with authentication via GITHUB_TOKEN and methods for issue/PR CRUD operations.
Type of Change
Testing
OpenSpec artifacts only — no code changes yet. Implementation and tests will follow in the next commit after tasks are applied.
Coverage
Checklist
npm run lintpassesRelated
Closes #449