<分区>
当您想对代码提出建议时,您使用什么功能?比方说,其中一位成员认为以另一种方式编写代码的特定部分更好,如果获得批准,那么他/她将实现实际更改?
<分区>
当您想对代码提出建议时,您使用什么功能?比方说,其中一位成员认为以另一种方式编写代码的特定部分更好,如果获得批准,那么他/她将实现实际更改?
最佳答案
自2018年10月起,你可以在GitHub上制作“Suggested Changes”:
Collaborators can suggest code changes through inline comments in pull requests, and pull request authors can apply, reject, or edit these suggestions as an integrated part of the code review process.
参见“Applying a suggested change”
参见 this tweet for illustration .
2018 年 11 月更新:博文“Suggested changes—what we've learned so far”添加:
Since its release, more than 10 percent of all reviewers suggested at least one change, totaling over 100,000 suggestions—and nearly four percent of all review comments created included a suggestion. Based on these early numbers, we see you’re quick to adopt suggested changes and make them a natural part of your code review workflow.
By far the most frequent requests were:
- The ability to suggest changes to multiple lines at once.
- The ability to accept multiple changes in a single commit.
关于git - 如何在 github/bitbucket 中提出代码建议?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27695328/