Skip to content
Permalink
Browse files
Reviewing help markdown does not work on gitlab
Reviewed-by: erikj
  • Loading branch information
magicus committed Mar 29, 2021
1 parent f7748c0 commit fb56e235d7154a1672574218a6be214d2bf3d25e
Showing with 7 additions and 7 deletions.
  1. +7 −7 bots/pr/src/main/java/org/openjdk/skara/bots/pr/CheckRun.java
@@ -530,30 +530,30 @@ private static String makeCollapsible(String summary, String content) {
private String reviewUsingGitHelp() {
var repoUrl = pr.repository().webUrl();
var firstTime =
"`$ git fetch " + repoUrl + " " + pr.fetchRef() + ":pull/" + pr.id() + "`\n" +
"`$ git fetch " + repoUrl + " " + pr.fetchRef() + ":pull/" + pr.id() + "` \\\n" +
"`$ git checkout pull/" + pr.id() + "`\n";
var updating =
"`$ git checkout pull/" + pr.id() + "`\n" +
"`$ git checkout pull/" + pr.id() + "` \\\n" +
"`$ git pull " + repoUrl + " " + pr.fetchRef() + "`\n";

return "Checkout this PR locally:\n" +
return "Checkout this PR locally: \\\n" +
firstTime +
"\n" +
"Update a local copy of the PR:\n" +
"Update a local copy of the PR: \\\n" +
updating;
}

private String reviewUsingSkaraHelp() {
return "Checkout this PR locally:\n" +
return "Checkout this PR locally: \\\n" +
("`$ git pr checkout " + pr.id() + "`\n") +
"\n" +
"View PR using the GUI difftool:\n" +
"View PR using the GUI difftool: \\\n" +
("`$ git pr show -t " + pr.id() + "`\n");
}

private String reviewUsingDiffsHelp() {
var diffUrl = pr.repository().webUrl() + "/pull/" + pr.id() + ".diff";
return "Download this PR as a diff file:\n" +
return "Download this PR as a diff file: \\\n" +
"<a href=\"" + diffUrl + "\">" + diffUrl + "</a>\n";
}

1 comment on commit fb56e23

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on fb56e23 Mar 29, 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.