pub fn offer_upload(
store: &mut NoteStore,
pr: &PullRequest,
poster: &dyn Poster,
yes: bool,
input: &mut impl BufRead,
out: &mut impl Write,
) -> Result<()>Expand description
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.