Skip to content

Commit

Permalink
13: Add link to PR in emails to mailing list
Browse files Browse the repository at this point in the history
Reviewed-by: ehelin
  • Loading branch information
rwestberg committed Jul 2, 2019
1 parent 0226b40 commit 61fc564
Showing 1 changed file with 9 additions and 3 deletions.
Expand Up @@ -176,7 +176,9 @@ private String composeReply(ZonedDateTime date, EmailAddress author, String pare
"\n" +
quoteBody(parentBody) +
"\n\n" +
filterComments(body);
filterComments(body) +
"\n\n" +
"PR: " + pr.getWebUrl();
}

private String verdictToString(Review.Verdict verdict) {
Expand Down Expand Up @@ -209,7 +211,9 @@ private String composeReview(ZonedDateTime date, EmailAddress parentAuthor, Stri
"\n" +
quoteBody(parentBody) +
"\n\n" +
filterComments(body.toString());
filterComments(body.toString()) +
"\n\n" +
"PR: " + pr.getWebUrl();
}

private String composeRebaseComment(Hash lastBase, PullRequestInstance prInstance, URI fullWebrev) {
Expand Down Expand Up @@ -247,7 +251,9 @@ private String composeIncrementalComment(Hash lastHead, PullRequestInstance prIn

private String composeReadyForIntegrationComment() {
return "This PR now fulfills all the requirements for integration, and is only awaiting the final " +
"integration command from the author.";
"integration command from the author." +
"\n\n" +
"PR: " + pr.getWebUrl();
}

private Repository materializeArchive(Path scratchPath) {
Expand Down

0 comments on commit 61fc564

Please sign in to comment.