This topic describes how code contributions are counted and how to configure your settings for accurate tracking.
Counting rules
Your code contribution is counted only when the email address in your local git config matches the primary email in your platform account. To ensure your reports are accurate, verify that:
-
The email address in your local
git configmust match the primary email in your platform account. -
Commit time statistics use your local system time. Ensure your local time is set correctly.
The report categorizes unrecognized contributions as "Unknown".
Set your Git email address locally
In Git Bash, run the following commands to configure your username and email address.
git config --global user.name "Your Name" # Replace with your username
git config --global user.email you@example.com # Replace with your email address
View your primary email
Go to Alibaba Cloud DevOps Workbench, click your personal avatar in the top-right corner, and then click Personal Settings. In the Personal Information section, view your Primary Email. If it is not configured, click Add Email to add one.
View your code commits
Go to Alibaba Cloud DevOps Insights, select , and view the details on the Personal Measurement Report page.
The page displays the Work Item Status Overview (total count, to-do, in progress, and overdue), statistics for Completed Work Items (requirements, defects, tasks, and overdue completions), the Requirement Trend line chart, the Defect Trend line chart, and the Code Commits heat map, which visualizes commit frequency by date.