Migrate AI commit message generation to Copilot CLI - #89
Merged
Conversation
Collaborator
Author
|
I got a COPILOT_PAT under my dblock username (should be free at least while I work at MSFT) |
dblock
force-pushed
the
migrate-copilot-cli-provider
branch
from
August 12, 2026 01:56
7972a72 to
7c4de2d
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.
Problem
GitHub Models (
models.github.ai, the backendactions/ai-inference@v1used for AI commit summaries in #87) was fully retired on July 30, 2026:This is permanent, not a temporary outage — every scheduled
update.ymlrun will fail from now on.Fix
actions/ai-inferencewas rewritten (v3, released July 29, 2026) to exclusively shell out to the GitHub Copilot CLI instead of calling GitHub Models. This PR updates the workflow accordingly:npm install -g @github/copilot) before invokingactions/ai-inference@v1, usingCOPILOT_GITHUB_TOKENsourced from a newCOPILOT_PATrepo secret.models: readpermission.responseFormat/jsonSchema), so the prompt now asks for a bare JSON object with no markdown fences, and the "Build commit message" step strips any```fences defensively before parsing withjq.This requires adding a
COPILOT_PATsecret (a PAT for an account with Copilot CLI access) to this repository's Actions secrets for the workflow to actually run. Copilot CLI usage is free for individual accounts (with monthly limits) and open source maintainers can request higher/unlimited access — see https://github.com/features/copilot/plans.