Repository graphs in Azure DevOps
Published Feb 09 2023 03:10 PM 8,312 Views

If you working with GitHub, you must be aware that repository insights graph is available in public repositories (as shown below) with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. 




Basically repository's graphs give you information on traffic, projects that depend on the repository, contributors and commits to the repository, and a repository's forks and network. If you maintain a repository, you can use this data to get a better understanding of who's using your repository and why they're using it. But unfortunately this features not available in Azure DevOps and developer community looking the same feature under Azure DevOps. Lets begin with following customer scenario.


Suppose you have several repositories in Azure DevOps. In my dashboard, in the project stats I can see that there were X commits by Y authors (for the last 7 days), but, I cannot click on this to get more details. How can I get the list or overview of who committed what on the repos for the last X days?


If above ask were about for single repository we can simply use following command at CLI.


git shortlog --since="7 days ago"

It would output a list sorted by author, like this


Vinod Soni (3):
     Commit message foo
     Commit message bar
     Commit message baz
Mahima Soni (1):
     Commit message abc

Of course, above is only the default format, but you could as well use --format=<format> to specify how each commit should be displayed. 


We can also use the Git UI to visualize the history (as shown in below screenshot) but our customer ask is for multiple repositories in the Azure DevOps project. In other words they wanted to see over all repos in one request. 




I found the Contributions Graph extension for Azure DevOps which allows you to see who did what for different repositories. Works really nice! We can install it from Visual Studio marketplace or above link. It’s free to use and we don’t have to pay anything additional. Below are some standard steps to configure it for our Azure DevOps organization.


Step 1: Go to Link Contributions Graph 




Step 2: Click on Get it free option and select your target Azure DevOps organization then select Download. It may take few minutes to install.




Step 3: Login to Azure DevOps then go to your organization. Go to Boards and you will find the Contribution graph is installed (as shown in below screenshot).



You can apply filer as per your requirement and include multiple repositories, authors in filter criteria as shown in below screenshot.



If you have any question answer and look any issue please visit publisher's GitHub repository for extension related questions. You can view the GitHub repository readme file for more information and detailed documentation.


Hope this will help you to achieve the similar functionality available in GitHub.

1 Comment
Version history
Last update:
‎Feb 09 2023 03:45 PM
Updated by: