Skip to content

feat(gh-copilot): close Copilot metrics parity gaps#8889

Open
jaroslawgajewski wants to merge 2 commits into
apache:mainfrom
jaroslawgajewski:feature/copilot-metrics-per-user-gaps
Open

feat(gh-copilot): close Copilot metrics parity gaps#8889
jaroslawgajewski wants to merge 2 commits into
apache:mainfrom
jaroslawgajewski:feature/copilot-metrics-per-user-gaps

Conversation

@jaroslawgajewski
Copy link
Copy Markdown

Summary

  • add missing enterprise and organization Copilot metrics for CLI usage, code review counts, chat panel modes, and expanded pull request stats
  • extend per-user daily metrics with CLI usage and code review flags plus CLI breakdown fields
  • add user-teams-1-day collection, extraction, migration, and table support for team-level correlation
  • enrich seat records with assignee identity and assigning team details
  • register the new model, migration, and subtasks in the gh-copilot plugin

Testing

  • go test ./plugins/gh-copilot/models/... -count=1
  • go test ./plugins/gh-copilot/tasks/... -count=1
  • go build ./plugins/gh-copilot/...
  • go vet ./plugins/gh-copilot/...

Related

jaroslawgajewski and others added 2 commits May 27, 2026 16:22
…de review, and PR fields

Add missing GitHub Copilot Metrics API fields to achieve full API parity:

Enterprise/Org metrics:
- CLI active user counts and CLI breakdown (sessions, requests, tokens)
- Code review user counts (daily/weekly/monthly × active/passive)
- Chat panel mode breakdown (agent/ask/custom/edit/plan/unknown)
- Expanded PR metrics (merged, merge time, suggestions, Copilot impact)

Per-user metrics:
- used_cli, used_copilot_code_review_active/passive boolean flags
- CLI breakdown per user (sessions, requests, tokens)

User-team mapping (new):
- New collector/extractor for user-teams-1-day endpoint
- Enables team-level metrics via JOIN with per-user tables

Seat assignments:
- Team assignment fields (assigning_team id/name/slug)
- User detail fields (name, email)

Includes migration script 20260527 and comprehensive docs in
COPILOT_METRICS_GAPS.md.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… implement new user-team mapping and metrics enhancements

Signed-off-by: Jarek <jaroslaw.gajewski@atos.net>
@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. component/plugins This issue or PR relates to plugins pr-type/feature-development This PR is to develop a new feature labels May 27, 2026
Copy link
Copy Markdown
Contributor

@klesh klesh left a comment

Choose a reason for hiding this comment

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

LGTM.
Thanks for your contribution.

@klesh
Copy link
Copy Markdown
Contributor

klesh commented May 30, 2026

Hi, the end-to-end tests are failing. Could you please fix them so I can merge the pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/plugins This issue or PR relates to plugins pr-type/feature-development This PR is to develop a new feature size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants