Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Copilot): Update average card formula #1503

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

leonarhv
Copy link

@leonarhv leonarhv commented Oct 9, 2024

Hey, I just made a Pull Request!

This PR updates the formula of the Acceptance Rate Average card. The current formula is using the total lines of code accepted over the number of days. This would represent the rate of lines accepted per day.
To keep the acceptance rate consistent across all the plugin, this change now uses total_acceptances_count / total_suggestions_count (Same formula as the languages breakdown table uses)

Captura de Tela 2024-10-09 às 16 31 18

The language breakdown table also has a minor change. Previously the column that shows the total suggestions of a given language had the title "Accepted Lines of Code", this title is now "Total Suggestions"

Captura de Tela 2024-10-09 às 16 31 07

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@leonarhv leonarhv requested a review from a team as a code owner October 9, 2024 19:38
@leonarhv leonarhv requested a review from vinzscam October 9, 2024 19:38
@backstage-goalie
Copy link
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-copilot workspaces/copilot/plugins/copilot patch v0.2.1

Signed-off-by: Leonardo H Vieira <[email protected]>
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