Team metrics support #80
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
: AddedVUE_APP_GITHUB_TEAM
environment variable to filter metrics for a specific GitHub team.README.md
: Updated documentation to include information about the newVUE_APP_GITHUB_TEAM
environment variable.Configuration Updates
public/assets/app-config.js
: AddedVUE_APP_GITHUB_TEAM
to the configuration object.src/config.ts
: Updated the configuration to include the newGITHUB_TEAM
property. [1] [2] [3]API Changes
src/api/GitHubApi.ts
: Added a new API methodgetTeamMetricsApi
to fetch metrics for a specific team.Component Modifications
src/components/MainComponent.vue
:getTeamMetricsApi
method.teamName
to display the team name in the toolbar.VUE_APP_GITHUB_TEAM
variable is set. [1] [2] [3] [4] [5] [6]