在拉取请求中加入反馈
When reviewers suggest changes in a pull request, you can automatically incorporate the changes into the pull request or open an issue to track out-of-scope suggestions.
本文内容
应用建议的更改
其他人可对您的拉取请求提出具体的更改建议。 如果您可以写入仓库,便可直接在拉取请求中应用这些提议的更改。 如果拉取请求创建自复刻,并且作者允许维护员编辑,则您也可以应用提议的更改(如果您可以写入上游仓库)。 更多信息请参阅“评论拉取请求”和“允许更改创建自复刻的拉取请求分支”。
要快速将多项提议的更改合并到单一提交,您也可以批量应用提议的更改。 应用一项或一批提议的更改会在拉取请求的比较分支上创建一个提交。
在提交中提议了更改的每个人都是该提交的联合作者。 提议的更改的应用者将是提交的联合作者兼提交者。 有关 Git 中术语提交者的更多信息,请参阅 Pro Git 书籍站点中的“Git 基本信息 - 查看提交历史记录”。
-
Under your repository name, click Pull requests.
-
在拉取请求列表中,单击要对其应用提议的更改的拉取请求。
-
导航到您要应用的第一个提议的更改。
- 要在其自己的提交中应用更改,请单击 Commit suggestion(提交建议)。
- 要将建议添加到一批更改,请单击 Add suggestion to batch(添加建议到批次)。 继续添加要包含在单一提交中的更改提议。 添加完提议的更改后,单击 Commit suggestions(提交建议)。
- 要在其自己的提交中应用更改,请单击 Commit suggestion(提交建议)。
-
在提交消息字段中,输入简短、有意义的提交消息,以描述对文件的更改。
-
单击 Commit changes(提交更改)。
Opening an issue for an out-of-scope suggestion
If someone suggests changes to your pull request and the changes are out of the pull request's scope, you can open a new issue to track the feedback.
-
Under your repository name, click Pull requests.
-
In the list of pull requests, click the pull request with the out-of-scope suggestion.
-
In the comment containing the out-of-scope suggestion, click .
-
Click Reference in new issue.
-
Use the "Repository" drop-down menu, and select the repository you want to open the issue in.
-
Type a descriptive title and body for the issue.
-
Click Create issue.
延伸阅读
- “关于拉取请求审查”
- "审查拉取请求中提议的更改"
- "评论拉取请求"
- "申请拉取请求审查"