Skip to content

Enable org billing (copilot-requests) for agentic workflows#2003

Closed
SteveSandersonMS wants to merge 6 commits into
mainfrom
stevesa/aw-copilot-requests
Closed

Enable org billing (copilot-requests) for agentic workflows#2003
SteveSandersonMS wants to merge 6 commits into
mainfrom
stevesa/aw-copilot-requests

Conversation

@SteveSandersonMS

Copy link
Copy Markdown
Contributor

What

Enables org billing for all agentic (gh-aw) workflows in this repo by adding the following to each workflow's frontmatter:

```yaml
features:
copilot-requests: true
```

Details

  • Added the `features.copilot-requests: true` frontmatter to all 11 agentic workflow `.md` sources.
  • Recompiled with `gh aw compile` (CLI `v0.77.5`, matching `verify-compiled.yml`), regenerating the corresponding `.lock.yml` files.

All 11 use the `copilot` engine, so the feature applies to each of them:

Workflow
handle-bug
handle-enhancement
handle-documentation
handle-question
issue-classification
issue-triage
sdk-consistency-review
cross-repo-issue-analysis
release-changelog
java-codegen-fix
java-adapt-handwritten-code-to-accept-upgrade-changes

Verification

  • `gh aw compile` succeeded with 0 errors (the 4 warnings are pre-existing and unrelated to this change).
  • The only substantive lock-file change is the updated `frontmatter_hash` metadata (plus deterministic prompt/config markers) — as expected for a frontmatter-only change.
  • `verify-compiled` CI should pass since lock files were regenerated and committed alongside the sources.

lukewar and others added 4 commits July 1, 2026 22:35
Recompile issue-triage.lock.yml with gh-aw v0.82.1 to wire
GH_AW_RUNTIME_FEATURES=${{ vars.GH_AW_RUNTIME_FEATURES }}, enabling native
issue intents (rationale/confidence) for the workflow's add-labels safe
output. No behavior change: the trigger, permissions, prompt, and safe
outputs are unchanged, and the source .md is untouched.

The actions-lock.json pin bump (github/gh-aw-actions/setup v0.82.1) is
required by the recompiled lock.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The verify-compiled workflow pinned gh-aw v0.77.5 while issue-triage.lock.yml
was compiled with v0.82.1, so CI recompiled at v0.77.5 and the byte diff failed
the check. Bump the pin to v0.82.1 to match, and recompile all lock files at
v0.82.1 so they are consistent with the pinned compiler.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 16, 2026 16:26
@SteveSandersonMS SteveSandersonMS requested a review from a team as a code owner July 16, 2026 16:26

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

Adds org-billing configuration to 11 agentic workflows and recompiles their generated lock files. However, gh-aw v0.77.5 ignores this feature flag, so the generated workflows still use COPILOT_GITHUB_TOKEN.

Changes:

  • Adds features.copilot-requests: true to 11 workflow sources.
  • Regenerates corresponding lock files and metadata.
  • Normalizes two unchanged final lines.
Show a summary per file
File Description
.github/workflows/sdk-consistency-review.md Adds billing feature flag.
.github/workflows/sdk-consistency-review.lock.yml Updates generated metadata and markers.
.github/workflows/release-changelog.md Adds billing feature flag.
.github/workflows/release-changelog.lock.yml Updates generated metadata and markers.
.github/workflows/java-codegen-fix.md Adds billing feature flag.
.github/workflows/java-codegen-fix.lock.yml Updates generated metadata and markers.
.github/workflows/java-adapt-handwritten-code-to-accept-upgrade-changes.md Adds billing feature flag.
.github/workflows/java-adapt-handwritten-code-to-accept-upgrade-changes.lock.yml Updates generated metadata and markers.
.github/workflows/issue-triage.md Adds billing feature flag.
.github/workflows/issue-triage.lock.yml Updates generated metadata and markers.
.github/workflows/issue-classification.md Adds billing feature flag.
.github/workflows/issue-classification.lock.yml Updates generated metadata and markers.
.github/workflows/handle-question.md Adds billing feature flag.
.github/workflows/handle-question.lock.yml Updates generated metadata and markers.
.github/workflows/handle-enhancement.md Adds billing feature flag.
.github/workflows/handle-enhancement.lock.yml Updates generated metadata and markers.
.github/workflows/handle-documentation.md Adds billing feature flag.
.github/workflows/handle-documentation.lock.yml Updates generated metadata and markers.
.github/workflows/handle-bug.md Adds billing feature flag.
.github/workflows/handle-bug.lock.yml Updates generated metadata and markers.
.github/workflows/cross-repo-issue-analysis.md Adds billing feature flag.
.github/workflows/cross-repo-issue-analysis.lock.yml Updates generated metadata and markers.

Review details

  • Files reviewed: 22/22 changed files
  • Comments generated: 11
  • Review effort level: Medium

Comment on lines +2 to +3
features:
copilot-requests: true
Comment thread .github/workflows/release-changelog.md Outdated
Comment on lines +2 to +3
features:
copilot-requests: true
Comment thread .github/workflows/java-codegen-fix.md Outdated
Comment on lines +2 to +3
features:
copilot-requests: true
Comment on lines +2 to +3
features:
copilot-requests: true
Comment thread .github/workflows/issue-triage.md Outdated
Comment on lines +2 to +3
features:
copilot-requests: true
Comment thread .github/workflows/handle-question.md Outdated
Comment on lines +2 to +3
features:
copilot-requests: true
Comment thread .github/workflows/handle-enhancement.md Outdated
Comment on lines +2 to +3
features:
copilot-requests: true
Comment on lines +2 to +3
features:
copilot-requests: true
Comment thread .github/workflows/handle-bug.md Outdated
Comment on lines +2 to +3
features:
copilot-requests: true
Comment on lines +2 to +3
features:
copilot-requests: true
SteveSandersonMS and others added 2 commits July 16, 2026 17:02
`gh aw compile` with the v0.82.10 toolchain introduced by this PR emits
`.github/workflows/agentics-maintenance.yml`. Commit the generated file
so it is tracked alongside the recompiled locks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 004ba78d-3cf4-41ab-8647-180e683460f0
Add `permissions.copilot-requests: write` to all 11 agentic (gh-aw)
workflows so their Copilot usage is billed to the org, and recompile the
lock files. The compiled workflows now authenticate the Copilot CLI with
the GitHub Actions token and set S2STOKENS=true.

Authored by adding `features.copilot-requests: true`, migrating it with
`gh aw fix --write` (the deprecated flag maps to the permission), and
recompiling with gh-aw v0.82.10.

Rebased onto #1880 (issue-intents), which bumps the pinned gh-aw CLI to
v0.82.10.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 004ba78d-3cf4-41ab-8647-180e683460f0
@SteveSandersonMS SteveSandersonMS force-pushed the stevesa/aw-copilot-requests branch from 9131685 to 66fc319 Compare July 16, 2026 17:06

Copy link
Copy Markdown
Contributor Author

Superseded: the org-billing (copilot-requests) change has been merged into the branch for #1880, which now contains everything (issue-intents + v0.82.10 maintenance file + copilot-requests billing). Closing this in favor of #1880.

@SteveSandersonMS SteveSandersonMS deleted the stevesa/aw-copilot-requests branch July 16, 2026 17:11
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.

3 participants