You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by "ewega (via GitHub)" <gi...@apache.org> on 2026/01/05 18:29:06 UTC

[PR] GitHub Copilot Metrics Plugin [incubator-devlake]

ewega opened a new pull request, #8674:
URL: https://github.com/apache/incubator-devlake/pull/8674

   <!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at
   
       http://www.apache.org/licenses/LICENSE-2.0
   
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
   -->
   ### ⚠️ Pre Checklist
   
   > Please complete _ALL_ items in this checklist, and remove before submitting
   
   - [x] I have read through the [Contributing Documentation](https://devlake.apache.org/community/).
   - [ ] I have added relevant tests.
   - [ ] I have added relevant documentation.
   - [ ] I will add labels to the PR, such as `pr-type/bug-fix`, `pr-type/feature-development`, etc.
   
   <!--
   Thanks for submitting a pull request!
   
   We appreciate you spending the time to work on these changes.
   Please fill out as many sections below as possible.
   -->
   
   ### Summary
   
   This PR adds a new copilot data-source plugin that ingests GitHub Copilot organization-level adoption metrics and ships a Grafana Adoption dashboard powered by tool-layer tables.
   
   Key capabilities in this branch:
   
   - New connection + scope APIs (create/update/test Copilot connections; org-level scopes)
   - Collectors for Copilot REST endpoints:
     - Billing summary (used for “Test Connection”)
     - Seat assignments (pagination)
     - Daily adoption metrics (incremental collection, clamped to GitHub’s rolling 100-day window)
   - Extractor that materializes tool-layer tables for dashboarding:
     - org daily metrics (active/engaged users, suggestions/acceptances, chat usage, seat totals/active)
     - editor/language breakdown metrics
     - seat assignment snapshots
   - Error handling for common GitHub responses (403/404/422/429, including Retry-After)
   - Includes migrations + tests (unit + e2e dataflow fixtures)
   
   ### Does this close any open issues?
   https://github.com/apache/incubator-devlake/issues/8664
   
   ### Screenshots
   <img width="3243" height="1463" alt="image" src="https://github.com/user-attachments/assets/870fa36f-ac2b-4a01-965e-79bff82282e6" />
   
   <img width="1728" height="646" alt="image" src="https://github.com/user-attachments/assets/c4ca39ec-b8f2-46d5-b163-b7173b39edd6" />
   
   ### Other Information
   
   TODOs:
   - More robust testing
   - GitHub Copilot logo
   - Renaming all instances of `copilot` to `gh-copilot`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GitHub Copilot Metrics Plugin [incubator-devlake]

Posted by "ewega (via GitHub)" <gi...@apache.org>.
ewega commented on PR #8674:
URL: https://github.com/apache/incubator-devlake/pull/8674#issuecomment-3828785468

   Unfortunately, it seems like the metrics endpoint utilized is getting sunset: https://docs.github.com/en/enterprise-cloud@latest/rest/copilot/copilot-usage-metrics?apiVersion=2022-11-28
   
   Poor timing. Will rework and open a new PR


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GitHub Copilot Metrics Plugin [incubator-devlake]

Posted by "ewega (via GitHub)" <gi...@apache.org>.
ewega commented on PR #8674:
URL: https://github.com/apache/incubator-devlake/pull/8674#issuecomment-3711638835

   Please note I used GitHub's SpecKit to assist in developing this (https://github.com/github/spec-kit).
   
   There is a lot of scaffolding for Speckit to make GH Copilot work as expected (prompts/spec files). **These will be cleaned up once work is complete**


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GitHub Copilot Metrics Plugin [incubator-devlake]

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on PR #8674:
URL: https://github.com/apache/incubator-devlake/pull/8674#issuecomment-3841232336

   I see. Take your time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GitHub Copilot Metrics Plugin [incubator-devlake]

Posted by "ewega (via GitHub)" <gi...@apache.org>.
ewega closed pull request #8674: GitHub Copilot Metrics Plugin
URL: https://github.com/apache/incubator-devlake/pull/8674


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GitHub Copilot Metrics Plugin [incubator-devlake]

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on PR #8674:
URL: https://github.com/apache/incubator-devlake/pull/8674#issuecomment-3768826178

   Great job! Did you test it locally?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GitHub Copilot Metrics Plugin [incubator-devlake]

Posted by "ewega (via GitHub)" <gi...@apache.org>.
ewega commented on PR #8674:
URL: https://github.com/apache/incubator-devlake/pull/8674#issuecomment-3778655519

   @klesh, yes tested locally, it seems there's some pipeline failing though so I'm going to try and fix those. Any comments from yourself?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org