Skip to content

Improve copilot billing tip: add org requirement note and billing docs link#39873

Merged
pelikhan merged 4 commits into
mainfrom
copilot/improve-tip-for-copilot-billing
Jun 17, 2026
Merged

Improve copilot billing tip: add org requirement note and billing docs link#39873
pelikhan merged 4 commits into
mainfrom
copilot/improve-tip-for-copilot-billing

Conversation

Copilot AI commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

The gh aw compile tip for copilot-requests: write gave no indication that org-level Copilot billing must be enabled for it to work, and provided no link to learn more.

Changes

  • Tip message (permissions_compiler_validator.go): Extended the message to note that centralized Copilot billing must be enabled by the organization and may not be available, with a link to https://github.github.com/gh-aw/reference/billing/.
  • Test (copilot_requests_tip_test.go): Added assertions that the billing URL and org billing note are both present in the emitted tip.

Before:

info: Tip: set permissions.copilot-requests: write to use GitHub Actions token-based inference with the Copilot engine instead of a personal access token (COPILOT_GITHUB_TOKEN).

After:

info: Tip: set permissions.copilot-requests: write to use GitHub Actions token-based inference with the Copilot engine instead of a personal access token (COPILOT_GITHUB_TOKEN). This option requires that your organization has centralized Copilot billing enabled and may not be available in all organizations — see https://github.github.com/gh-aw/reference/billing/ for details.

Copilot AI and others added 2 commits June 17, 2026 18:41
Co-authored-by: dsyme <7204669+dsyme@users.noreply.github.com>
Co-authored-by: dsyme <7204669+dsyme@users.noreply.github.com>
Copilot AI changed the title [WIP] Improve tip for Copilot billing information Improve copilot billing tip: add org requirement note and billing docs link Jun 17, 2026
Copilot finished work on behalf of dsyme June 17, 2026 18:45
Copilot AI requested a review from dsyme June 17, 2026 18:45
@github-actions github-actions Bot mentioned this pull request Jun 17, 2026
@pelikhan pelikhan marked this pull request as ready for review June 17, 2026 20:38
Copilot AI review requested due to automatic review settings June 17, 2026 20:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves the gh aw compile informational tip emitted when permissions.copilot-requests: write is missing, by adding guidance about centralized Copilot billing requirements and linking to the billing reference docs.

Changes:

  • Extended the compiler tip text for permissions.copilot-requests: write to mention centralized Copilot billing and include a docs link.
  • Updated the existing unit test to assert the billing link and org billing requirement note are present.
  • Regenerated the compiled workflow lockfile for daily-formal-spec-verifier (substantial generated output changes).
Show a summary per file
File Description
pkg/workflow/permissions_compiler_validator.go Updates the emitted Copilot permissions tip message to include billing prerequisites and docs link.
pkg/workflow/copilot_requests_tip_test.go Adds assertions ensuring the new billing link and org billing note appear in stderr output.
.github/workflows/daily-formal-spec-verifier.lock.yml Large regeneration of a compiled workflow lockfile (versions/steps/config/schedule output changed).

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 3/3 changed files
  • Comments generated: 2

}
if shouldEmitCopilotRequestsEnableTip(workflowData, workflowPermissions) {
tipMsg := `Tip: set permissions.copilot-requests: write to use GitHub Actions token-based inference with the Copilot engine instead of a personal access token (COPILOT_GITHUB_TOKEN).`
tipMsg := `Tip: set permissions.copilot-requests: write to use GitHub Actions token-based inference with the Copilot engine instead of a personal access token (COPILOT_GITHUB_TOKEN). This option requires that your organization has centralized Copilot billing enabled and may not be available in all organizations — see https://github.github.com/gh-aw/reference/billing/ for details.`
Comment on lines +1 to +3
# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"7282f619432d4e8888225711f1fb6a9fc3e9d18fb12eaeb3424fe198e8885c86","body_hash":"511c354d1036187b61d80cedbcc3a648d047e9e336b83a11a0bcc8bbf096319d","strict":true,"agent_id":"copilot","engine_versions":{"copilot":"1.0.63","copilot-sdk":"1.0.1"}}
# gh-aw-manifest: {"version":1,"secrets":["GH_AW_AGENT_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN"],"actions":[{"repo":"actions/cache/restore","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/cache/save","sha":"27d5ce7f107fe9357f9df03efb73ab90386fccae","version":"v5.0.5"},{"repo":"actions/checkout","sha":"df4cb1c069e1874edd31b4311f1884172cec0e10","version":"v6.0.3"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e","version":"v6.4.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.27.4","digest":"sha256:b268ebf37df2428b19efcb383f001d65dc6a5ec10af43feb886d1a8477ab0e3a","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.27.4@sha256:b268ebf37df2428b19efcb383f001d65dc6a5ec10af43feb886d1a8477ab0e3a"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.4","digest":"sha256:3ea0d12a2d124db8ed6e2d18aff040e30ab3568161f258a132fccdeede4198cd","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.27.4@sha256:3ea0d12a2d124db8ed6e2d18aff040e30ab3568161f258a132fccdeede4198cd"},{"image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.27.4","digest":"sha256:72c378c029d2fad4684847ab44c329e526ac6b1a78cdf97656870ea11d201545","pinned_image":"ghcr.io/github/gh-aw-firewall/cli-proxy:0.27.4@sha256:72c378c029d2fad4684847ab44c329e526ac6b1a78cdf97656870ea11d201545"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.27.4","digest":"sha256:87979038897e40caed22245b64d1daa796390d2dca289b99d3d1174c85740af8","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.27.4@sha256:87979038897e40caed22245b64d1daa796390d2dca289b99d3d1174c85740af8"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.3.26","digest":"sha256:d3b03f54eee3a8176818c9a52087623e45b7f644a28814337fcc0838e2534490","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.3.26@sha256:d3b03f54eee3a8176818c9a52087623e45b7f644a28814337fcc0838e2534490"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b","pinned_image":"ghcr.io/github/gh-aw-node@sha256:529d02eb970b1161aa25c593a9c3df57fdfad5a8add328cb3b6eccef66f3183b"},{"image":"ghcr.io/github/github-mcp-server:v1.3.0","digest":"sha256:5c83359327a0bacc3d34db730bea6557d39d341cee0bf6c58c9a896e33150e80","pinned_image":"ghcr.io/github/github-mcp-server:v1.3.0@sha256:5c83359327a0bacc3d34db730bea6557d39d341cee0bf6c58c9a896e33150e80"}]}
# This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md
@pelikhan pelikhan merged commit d253194 into main Jun 17, 2026
30 checks passed
@pelikhan pelikhan deleted the copilot/improve-tip-for-copilot-billing branch June 17, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants