Skip to content
Permalink
Browse files
319: git-info uses wrong JBS project
Reviewed-by: rwestberg
  • Loading branch information
edvbld committed Mar 18, 2020
1 parent 4b7b969 commit 6c1dd66670b73f47462aa165b1ec3cd9243cc04e
Showing 1 changed file with 4 additions and 4 deletions.
@@ -62,8 +62,8 @@ private static boolean getSwitch(String name, Arguments arguments, ReadOnlyRepos
return lines.size() == 1 && lines.get(0).toLowerCase().equals("true");
}

private static String jbsProject(ReadOnlyRepository repo) throws IOException {
var conf = JCheckConfiguration.from(repo);
private static String jbsProject(ReadOnlyRepository repo, Hash hash) throws IOException {
var conf = JCheckConfiguration.from(repo, hash);
return conf.general().jbs().toUpperCase();
}

@@ -228,7 +228,7 @@ public static void main(String[] args) throws IOException {

if (showReview) {
var decoration = useDecoration? "Review: " : "";
var project = jbsProject(repo);
var project = jbsProject(repo, hash);
if (message.issues().size() == 1) {
var issueId = message.issues().get(0).id();
var issueTracker = IssueTracker.from("jira", JBS);
@@ -245,7 +245,7 @@ public static void main(String[] args) throws IOException {
}
}
if (showIssues) {
var project = jbsProject(repo);
var project = jbsProject(repo, hash);
var uri = JBS + "/browse/" + project + "-";
var issues = message.issues();
if (issues.size() > 1) {

0 comments on commit 6c1dd66

Please sign in to comment.