I’m looking to track some metrics related to GitHub Copilot-generated code in a repository, and I need help with how to approach this. Need to gather metrics like Number of lines suggested by Copilot that have not been modified over time.Percentage of Copilot-suggested code that remains unchanged.The average time before suggested lines are modified.The average number of commits made before modifying the suggested code.The percentage of Copilot-generated code that gets modified within a specific timeframe The problem is that there’s no built-in way to track these metrics in GitHub or Copilot, and I’m not sure where to start . How can I automatically capture Copilot’s code suggestions in a way that makes this tracking possible? Any tools, techniques, or extensions you recommend to monitor and compare suggested code with the actual code in the repository?
I’d love to hear your thoughts on how to best calculate these metrics or any existing tools or scripts that could help!
Has anyone already implemented these kinds of analyses, or do you have suggestions on how to get started?
Ditjooo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.