Skip to content

Commit

Permalink
Merge pull request #94 from tomaslin/git-case-insensitive
Browse files Browse the repository at this point in the history
git trigger- make project and slug case insensitive
  • Loading branch information
tomaslin authored Jun 24, 2016
2 parents 7538d78 + 87e0e60 commit 0036a3f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ protected Predicate<Trigger> matchTriggerFor(final TriggerEvent event) {
String slug = gitEvent.getContent().getSlug();
String branch = gitEvent.getContent().getBranch();
return trigger -> trigger.getType().equals(GIT_TRIGGER_TYPE)
&& trigger.getSource().equals(source)
&& trigger.getProject().equals(project)
&& trigger.getSlug().equals(slug)
&& trigger.getSource().equalsIgnoreCase(source)
&& trigger.getProject().equalsIgnoreCase(project)
&& trigger.getSlug().equalsIgnoreCase(slug)
&& (trigger.getBranch() == null || trigger.getBranch().equals("") || matchesPattern(branch, trigger.getBranch()));
}

Expand Down

0 comments on commit 0036a3f

Please sign in to comment.