copilot-metrics-viewer
copilot-metrics-viewer copied to clipboard
App still shows enterprise data when NUXT_PUBLIC_SCOPE set to team
We have GitHub enterpriserise and want to display data for a specific team. But seems like the NUXT_PUBLIC_SCOPE is ignored and always stats for whole enterprise are displayed.
Here is our env file:
NUXT_PUBLIC_IS_DATA_MOCKED=false NUXT_PUBLIC_SCOPE=team NUXT_PUBLIC_GITHUB_ENT=myEnterprise NUXT_PUBLIC_GITHUB_TEAM=myTeam
NUXT_PUBLIC_USING_GITHUB_AUTH=false
I have tried to get data by using REST API and this one is returing the right data: https://api.github.com/enterprises/myEnterprise/team/myTeam/copilot/metrics
but for this one I am getting 404 (seems we do not have organizations): https://api.github.com/orgs/myEnterprise/team/myTeam/copilot/metrics - looks like this one is being used in your code (server/api/metrics.ts).
Maybe I am doing something wrong. Can you please advise? Thanks!