Skip to content

Commit

Permalink
Add getter for statusUrl and fix trigger bug.
Browse files Browse the repository at this point in the history
When a whitelisted member would add the retest phrase then triggered was being set
  • Loading branch information
DavidTanner committed Jun 23, 2015
1 parent 5805e76 commit 6b35f10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ private void checkComment(GHIssueComment comment) throws IOException {
} else if (accepted && helper.isWhitelisted(sender)) {
logger.log(Level.FINEST, "Retest accepted and user {0} is whitelisted", sender);
shouldRun = true;
triggered = true;
}
} else if (helper.isTriggerPhrase(body)) { // trigger phrase
logger.log(Level.FINEST, "Trigger phrase");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ public GhprbSimpleStatus(
this.completedStatus = completedStatus;
}

public String getStatusUrl() {
return statusUrl == null ? "" : statusUrl;
}

public String getCommitStatusContext() {
return commitStatusContext == null ? "" : commitStatusContext;
}
Expand Down

0 comments on commit 6b35f10

Please sign in to comment.