VSTS:自上次成功发布到生产以来,如何获取所有链接的工作项? [英] VSTS: How to get all linked work items since last successful release to production?

查看:248
本文介绍了VSTS:自上次成功发布到生产以来,如何获取所有链接的工作项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用带有GIT和VSTS版本管理的Visual Studio Team Services.我们正在使用提取请求运行连续交付模型.因此,每个合并的拉取请求都会触发相应构建的潜在释放,最终将最终投入生产.

We are using Visual Studio Team Services w/ GIT and VSTS Release Management. We are running a continuous delivery model using pull requests. So each merged pull request triggers a potential release from an according build that ultimately would end up in production.

每个版本都列出了与根据直接拉取请求关联的链接工作项. VSTS指出:

Each release lists the linked work items associated to the according direct pull request. VSTS states:

提交中包含的所有工作项将显示在下面的列表中.将当前版本与%先前版本%进行比较.

All work items that were included in commits will be displayed in the below list. Comparing current release with %previous release%.

但是,尽管它们已经被合并到代码库中,但并非所有拉取请求都可以进入生产环境.这意味着,后续构建实际上基于这样的(未发布的)拉取请求,不仅指直接链接的工作项(来自拉取请求),还指所有(尚未发布的)拉取请求的工作项.但是,这些工作项目前在工作项"概述中不可见,这是我们质量检查的一个问题.

However, not all pull requests make it to production, although they have been merged into the codebase already. That means, subsequent builds are actually based on such (not released) pull requests referring not only to the directly linked work items (from the pull request) but also to the work items of all the (not yet released) pull requests. These work items however, are currently not visible in the "Work Items" overview, which is an issue for our QAs.

是否有一种正式的方法来获取与该(当前)版本相关的所有先前链接的工作项目的列表,而不是生产中最后一个成功的版本?换句话说:我正在寻找一种方式来获取即将上线的发行版的更改日志(相对于最后一个完整发行版).

Is there an official way to get a list of all previously linked work items associated to that (current) release compared to the last successful release on production? In other words: I am looking for a way to get the change log of the release that is going to go live (relative to the last complete release).

我已经尝试使用VSTS REST API https://www .visualstudio.com/zh-CN/integrate/api/overview ,但在那里找不到合适的功能.

I've already tried to use the VSTS REST API https://www.visualstudio.com/en-us/integrate/api/overview but couldn't find suitable functions there.

推荐答案

同时,我找到了解决此问题的方法.到目前为止,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.

这篇关于VSTS:自上次成功发布到生产以来,如何获取所有链接的工作项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆