Skip to content

Conversation

martedesco
Copy link
Collaborator

@martedesco martedesco commented Aug 15, 2024

This pull request introduces a new feature to filter metrics for a specific GitHub Team at Org or Enterprise level. This is a first version done to support users that want to sue this API straight away! At this first moment, it has to be setup through an environment variable but in a next ship it would be nice if the app retrieves a list of teams in an Org or Enterprise and users can switch Teams in-app. Any thoughts? Let me know! 🚀

Changes breakdown

New Feature: Team-Specific Metrics

  • .env: Added VUE_APP_GITHUB_TEAM environment variable to filter metrics for a specific GitHub team.
  • README.md: Updated documentation to include information about the new VUE_APP_GITHUB_TEAM environment variable.

Configuration Updates

API Changes

  • src/api/GitHubApi.ts: Added a new API method getTeamMetricsApi to fetch metrics for a specific team.

Component Modifications

  • src/components/MainComponent.vue:
    • Imported the new getTeamMetricsApi method.
    • Added a computed property teamName to display the team name in the toolbar.
    • Updated the component to fetch and display team-specific metrics if the VUE_APP_GITHUB_TEAM variable is set. [1] [2] [3] [4] [5] [6]

@martedesco martedesco changed the title feature: Team metrics support Team metrics support Aug 15, 2024
@martedesco martedesco merged commit c29d16a into main Aug 15, 2024
4 checks passed
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.

1 participant