Migrate AI CHANGELOG entry generation to Copilot CLI - #593
Merged
Conversation
Danger ReportNo issues found. |
GitHub Models (the models.github.ai inference API backing actions/ai-inference@v1) was fully retired on July 30, 2026: Error: 410 GitHub Models is temporarily unavailable as part of a scheduled retirement brownout. actions/ai-inference@v1 has since been rewritten (v3) to exclusively shell out to the GitHub Copilot CLI instead of calling GitHub Models directly. Update the workflow to match: - Install and authenticate the Copilot CLI (npm install -g @github/copilot) before invoking actions/ai-inference@v1, using a COPILOT_GITHUB_TOKEN sourced from a new COPILOT_PAT repo secret (requires a Copilot-enabled account/subscription; free for individual/OSS maintainer tiers, but no longer works with the default GITHUB_TOKEN). - Drop the models: read permission, no longer needed. - The v3 action also dropped structured JSON schema output (responseFormat/jsonSchema); the prompt now asks the model to return a bare JSON object with no markdown fences, and the "Build changelog entries" step strips any ``` fences defensively before parsing with jq. NOTE: requires adding a COPILOT_PAT secret (a PAT for an account with Copilot CLI access) to this repository's Actions secrets for the workflow to actually run. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
dblock
force-pushed
the
migrate-copilot-cli-provider
branch
from
August 12, 2026 01:57
4fffbc4 to
f680f6b
Compare
Coverage Report for CI Build 31555298392Coverage remained the same at 91.055%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
Collaborator
Author
|
Sanity check: confirmed the pre-Copilot-CLI baseline |
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 CHANGELOG entries in #591) was fully retired on July 30, 2026:This is permanent, not a temporary outage — every scheduled
update_api.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, mirroring the equivalent fix in slack-ruby/slack-api-ref#89: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 changelog entries" 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.