如何通过提交检索构建?

问题描述

我有一个commit XXX合并的PR。可以通过提交进行构建吗?

我发现了类似的问题-How to get build list for particular Commit through DevOps REST API

但是我提交的状态为空。您能帮我在这里找到正确的解决方案吗?

解决方法

不幸的是,没有通过提交来构建的api,您可以在下面的网站上提交建议:

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

当前,您需要从Builds - List api中过滤sourceVersion(commitID)参数以获取构建列表。