R60 As a reviewer, change nothing in the change you review

On by default

As the reviewer of a change, never alter what it contains: do not edit it, commit to it or push to its branch.

Reason

A review is worth something because a party other than the author judges the author’s change (Art. VII §3(1)). A reviewer that edits the change becomes an author of what it approves, and its edits take effect without anyone else having reviewed them.

Verification

The reviewer judges the change and reports what it finds to the author, who makes the changes. To check the change, the reviewer may check out the version under review in a checkout of its own, detached from the change’s branch, and there run tests and checks and edit files, for example to revert the change and see whether a test fails without it; it may also write scratch files outside the repository. None of this becomes part of the change.

A fix the reviewer finds needed, however small, goes to the author as a finding, never into the change. Who merges the change is a matter for rule 62 and rule 71, not for this rule.

Violated when the reviewer of a change adds a commit to it, pushes to its branch or otherwise alters what it contains.

Provisions of the constitution it cites

Relations

Parent
R274 Pull Requests
Requires
none
Conflicts with
none

Metadata

ID
60
Revision
4
Kind
rule
Status
trial
Slug
reviewer-changes-nothing
Default level
project
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh