You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Developers using GitHub Copilot know its value, but how do you show that value to get continued buy-in from the business? How do you know if you're measuring what matters most, and how do you use those metrics to craft a story for executives?
@mickeygousset and @KittyChiu will be presenting this in the coming Universe'24.
We would love to hear your thought here in this thread - so how do you measure your Copilot effectiveness?
UPDATED 2024-10-30
Here're the link to the community's github/copilot-survey-engine which you can automate and trigger at every PR closure. For longer version of the developers survey, here's the link.
Sample code snippet to `calculate_org_deployment_frequency.sh`
#!/bin/bash# 1. Log in via `gh auth login`# 2. chmod +x calculate_org_deployment_frequency.sh# 3. Run ./calculate_org_deployment_frequency.sh# VariablesORG="<YOUR_ORG>"# Fetch repositoriesrepos=$(gh repo list $ORG --limit 1000 --json name -q '.[].name')calculate_frequency() {local repo=$1deployments=$(gh api repos/$ORG/$repo/deployments)current_time=$(date +%s)last_period=$(($current_time - 15768000)) # 6 months in secondssuccessful_deployments=0for deployment in $(echo $deployments | jq -r '.[] | select(.created_at | fromdateiso8601 > '$last_period') | .id'); dostatuses=$(gh api repos/$ORG/$repo/deployments/$deployment/statuses | jq -r '.[].state')for status in $statuses; doif [ "$status" == "success" ]; thensuccessful_deployments=$((successful_deployments + 1))breakfidonedoneecho "$repo: Total successful deployments in the last 6 months: $successful_deployments"}# Iterate over repositories and calculate deployment frequencyfor repo in $repos; docalculate_frequency $repodone
Sample code snippet to `calculate_avg_pr_per_developer.sh`
#!/bin/bash# 1. Log in via `gh auth login`# 2. chmod +x calculate_avg_pr_per_developer.sh# 3. Run ./calculate_avg_pr_per_developer.sh# VariablesORG="<YOUR_ORG>"# Fetch repositoriesrepos=$(gh repo list $ORG --limit 1000 --json name -q '.[].name')calculate_average_pr_merged_per_user() {local repo=$1current_time=$(date +%s)start_date=$(date -u -v -1m +"%Y-%m-%dT%H:%M:%SZ") # 1 monthprs=$(gh pr list --repo $ORG/$repo --limit 1000 --state merged --search "closed:>$start_date sort:updated-desc" --json mergedAt,mergedBy)declare user_pr_countuser_pr_count=()for pr in $(echo $prs | jq -r '.[] | select(.mergedAt) | .mergedBy.login'); douser_pr_count[$pr]=$((user_pr_count[$pr] + 1))donetotal_users=${#user_pr_count[@]}total_prs=0for count in "${user_pr_count[@]}"; dototal_prs=$((total_prs + count))donemean_pr_merged_per_user=0if [ $total_users -gt 0 ]; thenmean_pr_merged_per_user=$(echo "scale=2; $total_prs / $total_users" | bc)fiecho "$repo: Average PRs merged per user in the last month period: $mean_pr_merged_per_user"}# Iterate over repositories and calculate average PR merged per developerfor repo in $repos; docalculate_average_pr_merged_per_user $repodone
Lastly, we could not communicate to you earlier before the official announcement, the GA release of the Copilot Metrics API is now available. There are new payload schema and API endpoint to this GA release, do read this changelog to find out more.
A sneak peek of noticeable differences between beta and GA payload schema,
CopilotCode accurately and faster with your AI powered pair-programmer.SpeakerAuthored by GitHub Universe speakers: Ask questions or provide feedback on the session/workshopUniverse 2024githubuniverse.com Oct. 29-30
2 participants
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Developers using GitHub Copilot know its value, but how do you show that value to get continued buy-in from the business? How do you know if you're measuring what matters most, and how do you use those metrics to craft a story for executives?
@mickeygousset and @KittyChiu will be presenting this in the coming Universe'24.
We would love to hear your thought here in this thread - so how do you measure your Copilot effectiveness?
UPDATED 2024-10-30
Here're the link to the community's github/copilot-survey-engine which you can automate and trigger at every PR closure. For longer version of the developers survey, here's the link.
Sample code snippet to `calculate_org_deployment_frequency.sh`
Sample code snippet to `calculate_avg_pr_per_developer.sh`
Lastly, we could not communicate to you earlier before the official announcement, the GA release of the Copilot Metrics API is now available. There are new payload schema and API endpoint to this GA release, do read this changelog to find out more.
A sneak peek of noticeable differences between beta and GA payload schema,
Beta Was this translation helpful? Give feedback.
All reactions