Log inGet started
Package

prReview.tool

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

zm.prReview

Review a pull request — gh pr review.

The verdict is approve (ready to merge as it stands), request_changes (needs changes first) or comment (a remark with no verdict), with optional text. It is pinned to the head the request stands at: a later push to the request leaves the review outdated, and a fresh review of the new head stands beside it. A second review of the same head replaces your first.

A review never merges or closes the request; zm.prMerge and zm.prClose do. The request's author, and the accounts acting with the author, are refused (OWN_CONTENT): they comment instead.

Read the request with zm.prView first, and pass its analyzed_source_head as opts.expectedHead to be refused (CONFLICT) rather than judge a head you did not read.

zm.prReview(nil, 1, "approve", "Ran the door suite; it passes.")
zm.prReview(worldGuid, 3, "request_changes", "The hinge angle is clamped twice.")

In the shell: zm pr review [<world>] <n> (--approve | --request-changes | --comment) [-b <text>].