Skip to main content

Module upload

Module upload 

Source

Structs§

CliPoster
Posts with the az or gh CLI, as whoever they are signed in as.

Traits§

Poster
Posts notes to a pull request, each as a comment on its line (or on the change as a whole), and says where each one landed — or why it didn’t.

Functions§

azure_link
The page of an Azure DevOps pull request, opened at one of its threads.
azure_thread
The Azure DevOps request that opens a thread on the note’s line: its URL and body. A removed line is anchored on the left (target) side of the diff; a note on the change as a whole has no anchor.
github_comment
The gh api arguments that comment on the note’s line at the PR’s head commit, or, with on_file, on the file as a whole with the line named in the text.
github_review
The gh api arguments and JSON body for one review holding every note: the note on the change as a whole as its text, the others as comments on their lines.
offer_upload
After a review of a pull request, offers to post its notes there. Lists what would be posted, asks — unless yes already said so — and posts only on an explicit yes. Drafts nobody has opened are never posted. Posted notes leave the store for the posted log; notes that fail stay, so nothing is posted twice and nothing is lost.