且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

VSTS:自上次成功发布到生产以来,如何获取所有链接的工作项?

更新时间:2023-12-02 16:32:16

同时,我找到了解决此问题的方法.到目前为止,VSTS REST Api(1.0版)不支持查询发布或构建信息.但是,它知道请求请求: https://www.visualstudio.com/integrate/api/git/pull-requests 和工作项目: https://www.visualstudio.com/integrate/api/wit/work-items

Meanwhile I've found a workaround for my problem. As of now the VSTS REST Api (version 1.0) does not support querying release or build information. However, it knows pull requests: https://www.visualstudio.com/integrate/api/git/pull-requests and work items: https://www.visualstudio.com/integrate/api/wit/work-items

要实现此目的的前提条件是,您将拉取请求与工作项链接在一起.拉取请求合并到主请求中后,通常会在提交消息中提及链接的工作项.这就是我目前如何解决与已在两个日期(例如,上一版本和现在)之间合并的这些(已完成)请求请求相关的所有工作项的方法.

A pre-condition for this to work is that you link your pull requests with your work items. The moment a pull request gets merged into master, it usually mentions linked work items in the commit message. This is, how I currently can resolve all work items linked to these (completed) pull requests that have been merged between two dates (e.g. last release and now).

这不是***的解决方案,但它可以工作.

It's not the best solution but it works.