如何取消代码审查请求? [英] How can you cancel a Code Review Request?

查看:30
本文介绍了如何取消代码审查请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一些更改,然后在 TFS 中请求代码审查,然后意识到我对错误的分支进行了更改.所以我尝试删除工作项以表明我不再需要代码审查(至少在这个分支中).但是,当我尝试这样做时,出现了漂亮的红色错误:

I made some changes and then requested Code Review in TFS, then realized I had made the changes to the wrong branch. So I tried to delete the work item to show that I no longer needed code review (at least in this branch). However, when I tried to do that, I got the beautiful red error:

无法删除工作项:1061.错误详细信息:VS402838:无法删除工作项 1061.无法删除代码审查请求工作项.

Failed to delete work item: 1061. Error Details: VS402838: The work item 1061 cannot be deleted. Code Review Request work items cannot be deleted.

现在,我只是让每个人都完成代码审查,然后我将在正确的分支中进行完全相同的更改.但是我想知道如果他们坚持您不能删除代码审查请求工作项,那么在这种情况下您应该怎么做.

For now, I'll just have everybody complete the code review where it sits, and then I'll make the exact same changes in the correct branch. But I'm wondering what you are supposed to do in this case if they insist you can't delete Code Review Request work items.

推荐答案

我认为在 TFS-land 中应该做的事情是放弃代码审查,因为你不能从TFS.

I think The Right Thing to do in TFS-land is to Abandon the Code Review, since you can't delete it from TFS.

之前的答案有两种方法可以做到这一点.这是第三个,来自 Visual Studio,因为这似乎是一个方便的替代方案.

The previous answers have two means of doing that. Here's a third, from within Visual Studio, since that seemed like a convenient alternative.

  1. 团队资源管理器窗口中打开我的工作.
  1. Open My Work in the Team Explorer window.

  1. 找到 My Work 的代码审查部分.

  1. 右键单击要放弃的代码审查.

选择打开.

在代码审查用户界面中,选择关闭审查,原因是放弃

In the Code Review UI, select Close Review for the reason Abandon

  1. 利润.

这篇关于如何取消代码审查请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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