Skip to content

Document Copilot org-billing tip opt-out - #56564

Open
dsyme with Copilot wants to merge 8 commits into
mainfrom
copilot/suppress-org-billing-tip
Open

Document Copilot org-billing tip opt-out#56564
dsyme with Copilot wants to merge 8 commits into
mainfrom
copilot/suppress-org-billing-tip

Conversation

Copilot AI commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Users choosing PAT-based Copilot billing continued seeing the organization-billing suggestion during compilation. Document the existing explicit opt-out.

  • Billing reference
    • Explain that permissions.copilot-requests: none selects non-org billing and suppresses the informational tip.
permissions:
  copilot-requests: none

Run: https://github.com/github/gh-aw/actions/runs/33195749972

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See 网络 Configuration for more information.

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 38.7 AIC · ⌖ 8.78 AIC · ⊞ 8.8K ·
Comment /souschef to run again


Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See 网络 Configuration for more information.

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 24.4 AIC · ⌖ 8.7 AIC · ⊞ 8.8K ·
Comment /souschef to run again


Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See 网络 Configuration for more information.

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 22.7 AIC · ⌖ 8.88 AIC · ⊞ 8.8K ·
Comment /souschef to run again

Copilot AI linked an issue Aug 28, 2026 that may be closed by this pull request
Co-authored-by: dsyme <7204669+dsyme@users.noreply.github.com>
Copilot AI changed the title [WIP] Suppress org-based billing tip for users Document Copilot org-billing tip opt-out Aug 28, 2026
Copilot AI requested a review from dsyme August 28, 2026 08:50
@dsyme

dsyme commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

@copilot Please have gh aw add-wizard insert this into the workflow file by default if the user has actively selected using Copilot with a PAT

@dsyme

dsyme commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

@copilot please also make sure the opt-out is mentioned in the error message ".github/workflows/repo-assist.md: info: Tip: set permissions.copilot-requests: write to use GitHub 操作 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."

Do all this in this PR

Co-authored-by: dsyme <7204669+dsyme@users.noreply.github.com>

Copilot AI commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Please have gh aw add-wizard insert this into the workflow file by default if the user has actively selected using Copilot with a PAT

Implemented in 55bb74b. An explicit PAT selection now adds permissions.copilot-requests: none; focused add-wizard and workflow-content tests cover the behavior.

Co-authored-by: dsyme <7204669+dsyme@users.noreply.github.com>

Copilot AI commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

@copilot please also make sure the opt-out is mentioned in the error message ".github/workflows/repo-assist.md: info: Tip: set permissions.copilot-requests: write to use GitHub 操作 token-based inf...

Implemented in 7605f2f. The compiler tip now tells PAT users to set permissions.copilot-requests: none, with unit and integration assertions.

@dsyme
dsyme marked this pull request as ready for review August 28, 2026 09:48
Copilot AI balanced review requested due to automatic review settings August 28, 2026 09:48

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

Documents and automates the explicit PAT billing opt-out requested by #56563.

Changes:

  • Adds copilot-requests: none guidance to documentation and compiler tips.
  • Injects the opt-out when PAT authentication is selected in the add wizard.
  • Extends permission transformation and tests for the new behavior.
Show a summary per file
File Description
pkg/workflow/permissions_compiler_validator.go Adds opt-out guidance to compiler tips.
pkg/workflow/copilot_requests_tip_test.go Verifies tip content.
pkg/workflow/compiler_validators_test.go Checks the updated validator message.
pkg/cli/codemod_copilot_requests_feature.go Generalizes permission insertion.
pkg/cli/add_workflow_content.go Applies PAT opt-out during workflow addition.
pkg/cli/add_interactive_orchestrator.go Tracks PAT selection.
pkg/cli/add_interactive_git.go Passes PAT selection into add options.
pkg/cli/add_interactive_engine.go Records the selected authentication method.
pkg/cli/add_interactive_engine_test.go Tests authentication state changes.
pkg/cli/add_copilot_permissions.go Adds none permission injection.
pkg/cli/add_command.go Introduces the PAT opt-out option.
pkg/cli/add_command_test.go Tests injection and workflow output.
docs/src/content/docs/reference/billing.md Documents explicit PAT billing selection.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 13/13 changed files
  • Comments generated: 2
  • Review effort level: Balanced

Comment thread pkg/workflow/permissions_compiler_validator.go
Comment thread pkg/cli/add_workflow_content.go
@github-actions

Copy link
Copy Markdown
Contributor

Category: bug | Risk: low | Score: 47 (impact 22 + urgency 10 + quality 15) | Action: batch_review | Batch: workflow-ux. Low-risk billing/compile behavior change with solid tests and docs, but no CI signal yet.

Generated by 🔧 PR Triage Agent · copilot · mai10 · 18.1 AIC · ⌖ 2.63 AIC · ⊞ 16.6K ·

@github-actions

Copy link
Copy Markdown
Contributor

Category: docs | Risk: low | Score: 35 (impact 13/urgency 7/quality 15) | Action: batch_review | Batch: pr-batch:workflow-automation | CI: unknown

Generated by 🔧 PR Triage Agent · copilot · mai10 · 22.4 AIC · ⌖ 3.03 AIC · ⊞ 15.6K ·

@github-actions

Copy link
Copy Markdown
Contributor

Category: docs | Risk: low | Score: 35 (impact 13/urgency 7/quality 15) | Action: batch_review | Batch: pr-batch:workflow-automation

Generated by 🔧 PR Triage Agent · copilot · mai10 · 22.4 AIC · ⌖ 3.03 AIC · ⊞ 15.6K ·

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot This PR appears ready for final forward progress. Please refresh the branch if needed, verify the latest checks/review state on the current head commit, and then run the pr-finisher skill before handing back.

Current follow-up:

  • Prior requested changes were addressed, and the maintainer approval is already present.
  • The remaining work is to ensure the current head has the expected clean branch/check signal.

Run: https://github.com/github/gh-aw/actions/runs/33226160283

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See 网络 Configuration for more information.

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 13.8 AIC · ⌖ 8.68 AIC · ⊞ 8.8K ·
Comment /souschef to run again

Copilot AI commented Aug 29, 2026

Copy link
Copy Markdown
Contributor Author

@copilot This PR appears ready for final forward progress. Please refresh the branch if needed, verify the latest checks/review state on the current head commit, and then run the pr-finisher skill b...

Verified current head cb07df7 after refreshing from main and completed the PR-finisher validation. Local fmt, lint, unit tests, full tests, and recompilation pass; the referenced Sous Chef run has no failed jobs.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot Please refresh this branch if needed, verify the latest review and check state on the current head commit, and then run the pr-finisher skill before handing back.

Run: https://github.com/github/gh-aw/actions/runs/33228907361

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 14.6 AIC · ⌖ 8.68 AIC · ⊞ 8.8K ·
Comment /souschef to run again

Copilot AI commented Aug 29, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Please refresh this branch if needed, verify the latest review and check state on the current head commit, and then run the pr-finisher skill before handing back.

Run: https://github.com/g...

Verified current head cb07df7: it matches the upstream branch and already contains current main. The supplied Sous Chef run completed successfully with no failed jobs; the prior current-head Copilot check passed, while one newer Copilot check remains in progress.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot The remaining unresolved review threads already have substantive follow-up and this PR also has maintainer approval. Please verify the latest branch/check state on cb07df7 and run the pr-finisher skill before handing back.

Current unresolved review threads, newest first:

Your replies say both documented opt-out paths were fixed. Please hand back with maintainer-ready resolution context.

Run: https://github.com/github/gh-aw/actions/runs/33231241207

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See 网络 Configuration for more information.

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 22.7 AIC · ⌖ 8.88 AIC · ⊞ 8.8K ·
Comment /souschef to run again

Copilot AI commented Aug 29, 2026

Copy link
Copy Markdown
Contributor Author

@copilot The remaining unresolved review threads already have substantive follow-up and this PR also has maintainer approval. Please verify the latest branch/check state on cb07df7 and run the `pr-f...

Verified maintainer-ready state on cb07df7's refreshed successor 9f9fb8c: both cited review threads are resolved, the branch matches upstream and current main, and the supplied Sous Chef run succeeded with no failed jobs. The only remaining signal is the current-head Copilot check in progress.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot Please refresh this branch if needed, verify the latest review and check state on the current head commit, and then run the pr-finisher skill before handing back.

Run: https://github.com/github/gh-aw/actions/runs/33234948407

Generated by 👨‍🍳 PR Sous Chef · pi · gpt54 · 8.99 AIC · ⌖ 8.69 AIC · ⊞ 8.8K ·
Comment /souschef to run again

Copilot AI commented Aug 29, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Please refresh this branch if needed, verify the latest review and check state on the current head commit, and then run the pr-finisher skill before handing back.

Run: https://github.com/g...

Verified current head 9f9fb8c: it matches upstream and current main, both review threads remain resolved, and the supplied Sous Chef run completed successfully with no failed jobs. The previous current-head Copilot check passed; only the newly triggered Copilot check remains in progress.

@github-actions

Copy link
Copy Markdown
Contributor

Category: docs | Risk: low | Score: 24/100 (impact 10/50, urgency 6/30, quality 8/20) | Action: batch_review | Note: Docs-only clarification with low blast radius.

Generated by 🔧 PR Triage Agent · copilot · mai10 · 17 AIC · ⌖ 2.53 AIC · ⊞ 15.6K ·

注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

项目

None yet

Development

Successfully merging this pull request may close these issues.

Suppress org- based billing tip somehow

4 participants