Sergey K
Sergey K

Reputation: 103

How to retrieve build by commit?

I have a PR which was merged with commit XXX. Is it possible to get build by the commit?

I found similar question - How to get build list for particular Commit through DevOps REST API

but statuses for my commit are empty. Could you please help me to get right solution here?

Upvotes: 1

Views: 835

Answers (1)

Cece Dong - MSFT
Cece Dong - MSFT

Reputation: 31003

Unfortunately, there is no such api to get build by the commit, you could submit a suggestion at website below:

https://developercommunity.visualstudio.com/content/idea/post.html?space=21

Currently, you need to filter sourceVersion (commitID) parameter from Builds - List api to get the build list.

Upvotes: 1

Related Questions