问题描述
一旦批准PR,我想自动推进链接的工作项的状态,但是我不希望将其标记为完成".相反,我希望工作项状态为准备测试"(仍在进行中).
Once the PR is approved I want to automatically advance the state of the linked work item, but I don't want it to be marked as "complete". Instead I'd like the work item state to be "ready for testing" (still in progress).
推荐答案
目前,仅在合并PR时,工作项状态才能更改为完成.
For now, work item state can only be changed as complete when merging a PR.
并且有用户声音关闭PR后自定义工作项状态,这表明该功能,您可以投票并跟进.
And there has an user voice Customize Work Item State after PR is closed which suggests this feature, you can vote and follow up.
目前的解决方法是通过CI构建(完成PR后)更改链接的工作项.详细的工作流程如下:
The work around for now is changing the linked work item(s) through CI build (after completing the PR). Detail work flow as follow:
- 添加一个CI构建以在目标分支具有新的提交后自动触发.并添加一个PowerShell任务,以通过 REST API .
- PR完成后,CI构建将自动触发.链接的工作项状态将被更新.
这篇关于在VSTS中,当请求请求被批准时,我可以指定链接工作项的新状态吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!