Skip to content

Commit 2fb4fc2

Browse files
authored
Merge pull request #37115 from windsonsea/revprs
[zh] sync reviewing-prs.md
2 parents edbfb71 + 507692b commit 2fb4fc2

File tree

1 file changed

+64
-7
lines changed

1 file changed

+64
-7
lines changed

content/zh-cn/docs/contribute/review/reviewing-prs.md

Lines changed: 64 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,18 @@ When reviewing, use the following as a starting point.
214214
### Language and grammar
215215
216216
- Are there any obvious errors in language or grammar? Is there a better way to phrase something?
217+
- Focus on the language and grammar of the parts of the page that the author is changing.
218+
Unless the author is clearly aiming to update the entire page, they have no obligation to
219+
fix every issue on the page.
220+
- When a PR updates an existing page, you should focus on reviewing the parts of
221+
the page that are being updated. That changed content should be reviewed for technical
222+
and editorial correctness.
223+
If you find errors on the page that don't directly relate to what the PR author
224+
is attempting to address, then it should be treated as a separate issue (check
225+
that there isn't an existing issue about this first).
226+
- Watch out for pull requests that _move_ content. If an author renames a page
227+
or combines two pages, we (Kubernetes SIG Docs) usually avoid asking that author to fix every grammar or spelling nit
228+
that we could spot within that moved content.
217229
- Are there any complicated or archaic words which could be replaced with a simpler word?
218230
- Are there any words, terms or phrases in use which could be replaced with a non-discriminatory alternative?
219231
- Does the word choice and its capitalization follow the [style guide](/docs/contribute/style/style-guide/)?
@@ -223,6 +235,12 @@ When reviewing, use the following as a starting point.
223235
### 语言和语法 {#language-and-grammar}
224236

225237
- 是否存在明显的语言或语法错误?对某事的描述有更好的方式?
238+
- 关注作者正在更改的页面部分的语言和语法。除非作者明确打算更新整个页面,否则他们没有义务修复页面上的所有问题。
239+
- 当一个 PR 更新现有页面时,你应专注于评审正在更新的页面部分。你应评审所更改内容的技术和编辑的正确性。
240+
如果你发现页面上的一些错误与 PR 作者尝试解决的问题没有直接关系,
241+
则应将其视为一个单独的 Issue(首先检查是否存在与此相关的 Issue)。
242+
- 要特别注意那些 **移动** 内容的 PR。如果作者重命名一个页面或合并两个页面,
243+
我们(Kubernetes SIG Docs)通常应避免要求该作者修复可能在所移动的内容中发现的所有语法或拼写错误。
226244
- 是否存在一些过于复杂晦涩的用词,本可以用简单词汇来代替?
227245
- 是否有些用词、术语或短语可以用不带歧视性的表达方式代替?
228246
- 用词和大小写方面是否遵从了[样式指南](/zh-cn/docs/contribute/style/style-guide/)
@@ -243,33 +261,72 @@ When reviewing, use the following as a starting point.
243261
<!--
244262
### Website
245263
246-
- Did this PR change or remove a page title, slug/alias or anchor link? If so, are there broken links as a result of this PR? Is there another option, like changing the page title without changing the slug?
264+
- Did this PR change or remove a page title, slug/alias or anchor link? If so, are there broken
265+
links as a result of this PR? Is there another option, like changing the page title without
266+
changing the slug?
267+
247268
- Does the PR introduce a new page? If so:
248-
- Is the page using the right [page content type](/docs/contribute/style/page-content-types/) and associated Hugo shortcodes?
269+
270+
- Is the page using the right [page content type](/docs/contribute/style/page-content-types/)
271+
and associated Hugo shortcodes?
249272
- Does the page appear correctly in the section's side navigation (or at all)?
250273
- Should the page appear on the [Docs Home](/docs/home/) listing?
251-
- Do the changes show up in the Netlify preview? Be particularly vigilant about lists, code blocks, tables, notes and images.
274+
275+
- Do the changes show up in the Netlify preview? Be particularly vigilant about lists, code
276+
blocks, tables, notes and images.
252277
-->
253278
### 网站 {#Website}
254279

255280
- PR 是否改变或者删除了某页面的标题、slug/别名或者链接锚点?
256281
如果是这样,PR 是否会导致出现新的失效链接?
257282
是否有其他的办法,比如改变页面标题但不改变其 slug?
283+
258284
- PR 是否引入新的页面?如果是:
285+
259286
- 该页面是否使用了正确的[页面内容类型](/zh-cn/docs/contribute/style/page-content-types/)
260287
及相关联的 Hugo 短代码(shortcodes)?
261288
- 该页面能否在对应章节的侧面导航中显示?显示得正确么?
262289
- 该页面是否应出现在[网站主页面](/zh-cn/docs/home/)的列表中?
290+
263291
- 变更是否正确出现在 Netlify 预览中了?
264292
要对列表、代码段、表格、注释和图像等元素格外留心。
265293

266294
<!--
267295
### Other
268296
269-
For small issues with a PR, like typos or whitespace, prefix your comments with `nit:`. This lets the author know the issue is non-critical.
297+
- Watch out for [trivial edits](https://www.kubernetes.dev/docs/guide/pull-requests/#trivial-edits);
298+
if you see a change that you think is a trivial edit, please point out that policy
299+
(it's still OK to accept the change if it is genuinely an improvement).
300+
- Encourage authors who are making whitespace fixes to do
301+
so in the first commit of their PR, and then add other changes on top of that. This
302+
makes both merges and reviews easier. Watch out especially for a trivial change that
303+
happens in a single commit along with a large amount of whitespace cleanup
304+
(and if you see that, encourage the author to fix it).
270305
-->
271306
### 其他 {#other}
272307

273-
对于 PR 中的小问题,例如拼写错误或者空格问题,
274-
可以在你的评论前面加上 `nit:`
275-
这样做可以让作者知道该问题不是一个不得了的大问题。
308+
- 查阅 [Trivial Edits](https://www.kubernetes.dev/docs/guide/pull-requests/#trivial-edits)
309+
如果你看到某个变更在你看来是一个 Trivial Edit,请向作者指明这项政策(如果该变更确实会有所改进,那仍然可以接受)。
310+
- 鼓励作者们在第一次发 PR 时修复一些空格相关的问题,在随后的 PR 中增加其他更改。
311+
这样更便于合并和评审。尤其要注意在单个 commit 中大量空格清理附带的微小变更(如果你看到,请鼓励作者进行修复)。
312+
313+
<!--
314+
As a reviewer, if you identify small issues with a PR that aren't essential to the meaning,
315+
such as typos or incorrect whitespace, prefix your comments with `nit:`.
316+
This lets the author know that this part of your feedback is non-critical.
317+
318+
If you are considering a pull request for approval and all the remaining feedback is
319+
marked as a nit, you can merge the PR anyway. In that case, it's often useful to open
320+
an issue about the remaining nits. Consider whether you're able to meet the requirements
321+
for marking that new issue as a [Good First Issue](https://www.kubernetes.dev/docs/guide/help-wanted/#good-first-issue);
322+
if you can, these are a good source.
323+
-->
324+
作为一名 Reviewer,如果你发现 PR 有一些无关紧要的小问题,例如拼写错误或不正确的空格,
325+
可以在你的评论前面加上 `nit:`。这样做可以让作者知道该问题不是一个不得了的大问题。
326+
327+
如果你正在考虑批准一个 PR,并且所有剩余的反馈都被标记为 nit,那么你确实可以合并该 PR。
328+
在这种情况下,你需要针对剩余的 nit 发帖登记一个 Issue。
329+
考虑一下是否能把这些新 Issue 标记为
330+
[Good First Issue](https://www.kubernetes.dev/docs/guide/help-wanted/#good-first-issue)
331+
如果可以,这就是这类 Issue 的良好来源。
332+

0 commit comments

Comments
 (0)