Feat: remove github-models support and make copilot the only provider#236
Open
jalafel wants to merge 1 commit into
Open
Feat: remove github-models support and make copilot the only provider#236jalafel wants to merge 1 commit into
jalafel wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR removes the GitHub Models + OpenAI/MCP inference path and makes the action Copilot CLI–only, updating inputs, docs, and tests accordingly.
Changes:
- Removed MCP integration and OpenAI-based inference codepaths and dependencies.
- Simplified runtime to always build messages and invoke the Copilot CLI.
- Updated
action.yml, README, and tests to reflect Copilot-only usage.
Show a summary per file
| File | Description |
|---|---|
| src/mcp.ts | Removed MCP client + tool execution implementation. |
| src/inference.ts | Removed OpenAI-based inference (simple + MCP loop). |
| src/main.ts | Simplified provider routing to Copilot-only and switched request building to buildMessages. |
| src/helpers.ts | Removed inference-request/custom-header helpers; kept prompt/message helpers. |
| src/copilot.ts | Changed model forwarding behavior to pass --model for any non-empty model string. |
| package.json | Dropped openai, @modelcontextprotocol/sdk, and pkce-challenge dependencies. |
| action.yml | Removed GitHub Models/MCP/OpenAI-related inputs; updated defaults/descriptions for Copilot-only behavior. |
| README.md | Rewrote usage/docs for Copilot-only installation/auth flow; removed GitHub Models/MCP sections. |
| tests/mcp.test.ts | Removed tests for deleted MCP module. |
| tests/inference.test.ts | Removed tests for deleted OpenAI inference module. |
| tests/main-prompt-integration.test.ts | Removed integration tests for GitHub Models inference path. |
| tests/main.test.ts | Updated tests to validate Copilot-only behavior and options forwarding. |
| tests/helpers-inference.test.ts | Removed tests for deleted inference-request helpers. |
| tests/helpers.test.ts | Updated tests to focus on loadContentFromFileOrInput + buildMessages. |
| tests/copilot.test.ts | Updated tests to reflect new default model forwarding behavior. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 15/18 changed files
- Comments generated: 2
Comment on lines
41
to
44
| token: | ||
| description: The token to use | ||
| required: false | ||
| default: ${{ github.token }} |
Comment on lines
+4
to
+5
| const mockExistsSync = vi.fn().mockReturnValue(true) | ||
| const mockReadFileSync = vi.fn() |
sgoedecke
approved these changes
Jun 10, 2026
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.
This PR makes copilot the only provider and removes other code that github models used.
Note: this is up for review but shouldn't be merged until docs are updated!
What changed
Validation
npm test
Result: 4 test files passed, 36 tests passed
Impact