Skip to content
Permalink
Browse files
pr: markdown fixes for /backport
Reviewed-by: rwestberg
  • Loading branch information
edvbld committed Apr 19, 2021
1 parent 4e418f0 commit 53bfe81aac9524da410607ef9e148fef7bda7e74
Showing 1 changed file with 4 additions and 7 deletions.
@@ -173,7 +173,7 @@ public void handle(PullRequestBot bot, HostedCommit commit, CensusInstance censu
"[" + hash.abbreviate() + "](" + commit.url() + ") from the " +
"[" + currentRepoName + "](" + bot.repo().webUrl() + ") repository.");
body.add(">");
var info = "The commit being backported was authored by " + commit.author().name() + " on " +
var info = "> The commit being backported was authored by " + commit.author().name() + " on " +
commit.committed().format(formatter);
if (message.reviewers().isEmpty()) {
info += " and had no reviewers";
@@ -182,11 +182,7 @@ public void handle(PullRequestBot bot, HostedCommit commit, CensusInstance censu
.stream()
.map(r -> censusInstance.census().contributor(r))
.map(c -> {
var link = "[" + c.username() + "](https://openjdk.java.net/census#" +
c.username() + ")";
return c.fullName().isPresent() ?
c.fullName().get() + " (" + link + ")" :
link;
return c.fullName().isPresent() ? c.fullName().get() : c.username();
})
.collect(Collectors.toList());
var numReviewers = reviewers.size();
@@ -221,6 +217,7 @@ public void handle(PullRequestBot bot, HostedCommit commit, CensusInstance censu
"\n" +
String.join("\n", body) +
"\n" +
"\n" +
"If you need to update the [source branch](" + backportBranchWebUrl + ") of the pull " +
"then run the following commands in a local clone of your personal fork of " +
"[" + targetRepo.name() + "](" + targetRepo.webUrl() + "):\n" +
@@ -231,7 +228,7 @@ public void handle(PullRequestBot bot, HostedCommit commit, CensusInstance censu
"# make changes\n" +
"$ git add paths/to/changed/files\n" +
"$ git commit --message 'Describe additional changes made'\n" +
"$ git push\n" +
"$ git push " + fork.webUrl() + " " + backportBranchName + "\n" +
"```");
} catch (IOException e) {
throw new UncheckedIOException(e);

1 comment on commit 53bfe81

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 53bfe81 Apr 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.