Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Devops: Search Commit History of Author on ALL Branches

How do I find the commit History for Author in All Branches in Azure Devops? This option, only lets me filter by author person on a Feature Branch. Want to Search All branches.

enter image description here

like image 725
jerrythomas38 Avatar asked Jul 24 '19 21:07

jerrythomas38


People also ask

How do I check the commits in Azure DevOps?

You can click on a commit ID or commit message to open the commit details page. Build and PR information - You can view the pull request that brought this commit to the branch selected on the page, and view the build status of the current commit.

How do I find my Azure DevOps history?

To display the History window: In Source Control Explorer, select an item, open its shortcut menu, and then choose View History.

How do you check who created the branch in Azure DevOps?

Under the "Git Repositories" section, find the branch you are looking for and click on it. Under The "Users" section should be the name of the project administrator and the person who created the branch.


2 Answers

How do I find the commit History for Author in All Branches in Azure Devops?

If you want to view the commit history within all branches in UI page, I'm afraid to say that until now, this feature does not be supported. As you can see,it only support filter in one specified branch with UI button.

In our official feature suggestion website, here has exists such feature suggested: View history for whole GIT repository. And also, here has another feature suggestion which has been under review: Show combined git branch history, including common ancestor. I believe it will be released in the near future.

Note: You can vote and comment there. When has enough votes, the Product Group will consider it as plan.

Though it could not be achieved with UI, here has another work around you can try. You can use Rest API to filter the commit history by author within all branches.

Here is the sample:

GET https://dev.azure.com/{org name}/_apis/git/repositories/{repositoryId}/commits?searchCriteria.author={author name}&api-version=5.1

This API can list the commit records with the author filtered across All branches.

like image 77
Mengdi Liang Avatar answered Sep 21 '22 13:09

Mengdi Liang


The Contributions Graph plugin does this. You can filter by user by repository. It also includes activity on pull requests, work items.

Screenshot of the Contributions Graph

like image 28
Iain Avatar answered Sep 21 '22 13:09

Iain