Skip to content

Commit

Permalink
Refactor createJobSummary function to include total usage statistics …
Browse files Browse the repository at this point in the history
…and improve code readability
  • Loading branch information
austenstone committed Apr 23, 2024
1 parent c90ec10 commit e9ce023
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ const createJobSummary = async (data: CopilotUsageResponse) => {

await summary
.addHeading(`Copilot Usage Results for ${data[0].day} to ${data[data.length - 1].day}`)
.addHeading(`Suggestions: ${totalSuggestionsCount}`)
.addHeading(`Acceptances: ${totalAcceptanceCount}`)
.addHeading(`Suggestions: ${totalSuggestionsCount.toLocaleString()}`)
.addHeading(`Acceptances: ${totalAcceptanceCount.toLocaleString()}`)
.addHeading(`Acceptance Rate: ${totalAcceptanceRate}%`)
.addHeading(`Lines of Code Accepted: ${totalLinesOfCodeAccepted}`)
.addHeading(`Lines of Code Accepted: ${totalLinesOfCodeAccepted.toLocaleString()}`)
.addRaw(getXyChartAcceptanceRate(data))
.addRaw(getXyChartDailyActiveUsers(data))
.addHeading('Language Usage')
Expand Down

0 comments on commit e9ce023

Please sign in to comment.