You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Analyses per-user GitHub Copilot AI credit consumption over the last 30 days and recommends a Universal per-user budget limit. The recommendation is based on the 90th-percentile of actual usage, rounded up to the nearest 100 credits, so that ~90% of users can work without hitting the cap while outlier usage is still bounded.
|`--days N`| Look-back window in days (1–60) |`30`|
665
+
666
+
**What it does:**
667
+
- Fetches all Copilot seats across the enterprise (deduplicated by user)
668
+
- Fetches per-user AI credit consumption for the current billing month and, when the look-back window extends into it, the previous month (prorated by days)
669
+
- Calculates usage distribution: P50, P75, P90, P95, and max
670
+
- Recommends the P90 value rounded up to the nearest 100 as the Universal baseline budget
671
+
- Lists the top consumers (users above P90) so you can decide whether to adjust the suggestion up or down
672
+
- Shows the exact navigation path in GitHub to create the budget
673
+
674
+
> [!IMPORTANT]
675
+
> Requires a PAT with `read:enterprise` and `manage_billing:enterprise` scopes. Set `GITHUB_TOKEN` before executing (or have an active `gh` auth session with those scopes).
676
+
677
+
> [!NOTE]
678
+
> 1 AI credit ≈ $0.01 USD. Code completions are **not** billed in AI credits and are not included in this analysis. The budget tracks both included and additional (overage) usage.
@@ -949,6 +1000,7 @@ Each script is published as a **composite action**, so you can reference it dire
949
1000
| `reporting/github-monthly-issues-report` | Generate an HTML report of issues created within a date range |
950
1001
| `reporting/github-repo-permissions-report` | Export repository collaborator/team permissions and branch-approval bypass actors to CSV |
951
1002
| `reporting/github-copilot-report` | GitHub Copilot Enterprise licence and AI credit usage report, optionally enriched with Entra ID department data |
1003
+
| `reporting/github-copilot-budget-advisor` | Analyse per-user Copilot AI credit consumption and recommend a Universal per-user budget limit |
0 commit comments