Move console guidance into REVIEW.md

A repository's review guidance and rules belong in its REVIEW.md, where reviews read them from the merge base. Proofline can open one pull request that moves console guidance, repository rules and approved legacy review preferences into that file.

Ask for the pull request#

You need the organization's administrator role, and the organization must not be read-only.

  1. Open Repositories and select the repository.
  2. Open Settings → Review rules.
  3. Under Review guidance, select Open pull request.

The Review guidance section appears when the repository has console guidance, repository rules or approved legacy review preferences to move, or when Proofline already opened a pull request for them.

What the pull request adds#

The pull request adds a ## Review guidance section to the REVIEW.md at the repository's root, or creates the file. The guidance stays ordinary Markdown. Each repository rule gets its own proofline-rule block that keeps its name, text, paths and languages together:

{"key":"api-errors","text":"Return problem details.","path_globs":["/src/api/**"],"languages":["rust"]}

A file must match both the paths and the languages when a rule names both. A rule that names neither applies to every file.

A suppression moves as a proofline-suppression block with its exact approved text. If you edit that text, the suppression stops holding findings in reviews that read the edited version.

Your team reviews and merges the pull request like any other. Proofline never merges it.

Read the request's state#

  • Opening the pull request. Proofline is writing the change. The page refreshes until it finishes.
  • Pull request and its number link to the open pull request. The console text changed after this pull request opened. means the guidance or a rule changed since. Select Open a new pull request to include the change.
  • Proofline could not open the pull request names what stopped it. Fix the cause, then select Open a new pull request.

Fix a failed request#

  • REVIEW.md at the repository root is a symbolic link. Edit the rule in the file the link points to.
  • REVIEW.md at the repository root is not a text file Proofline can add to. The file is larger than 256 KiB or is not text. Shorten it or move the guidance by hand.
  • REVIEW.md at the repository root must be a regular file. The root entry is a directory or a submodule. Move the guidance into the file that holds your rules.
  • REVIEW.md has file-wide path restrictions or ends inside a Markdown code fence. Adding to it could change the moved rule's scope. Move the named rule or guidance by hand.
  • Rule … cannot be represented as a scoped text rule. Move that rule into the repository by hand.

Until console guidance retires#

Console guidance, repository rules and approved legacy review preferences keep applying to reviews until Proofline retires them. After that, new reviews read the moved content only from REVIEW.md. The move stays available while there is console text or an approved preference to carry.

Search help

Tab to a result. Enter to open. Escape to close.