diff --git a/CHANGELOG.md b/CHANGELOG.md index 452f200..19466e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ Changelog of Pull Request Notifier for Bitbucket. +## 2.4 +* Changing wording of trigger conditions in admin GUI. + ## 2.3 * Bugfix: Loading CSS and JS in admin-page diff --git a/src/main/java/se/bjurr/prnfb/listener/PrnfbPullRequestEventListener.java b/src/main/java/se/bjurr/prnfb/listener/PrnfbPullRequestEventListener.java index d4cabc2..605016d 100644 --- a/src/main/java/se/bjurr/prnfb/listener/PrnfbPullRequestEventListener.java +++ b/src/main/java/se/bjurr/prnfb/listener/PrnfbPullRequestEventListener.java @@ -1,6 +1,7 @@ package se.bjurr.prnfb.listener; import static com.google.common.base.Optional.absent; +import static com.google.common.base.Optional.of; import static com.google.common.collect.Maps.newHashMap; import static java.lang.Boolean.FALSE; import static java.lang.Boolean.TRUE; @@ -150,7 +151,7 @@ public void notify(final PrnfbNotification notification, PrnfbPullRequestAction Optional postContent = absent(); if (notification.getPostContent().isPresent()) { - postContent = Optional.of(renderer.render(notification.getPostContent().get())); + postContent = of(renderer.render(notification.getPostContent().get())); } String renderedUrl = renderer.render(notification.getUrl()); logger.info(notification.getName() + " > " // @@ -163,9 +164,11 @@ public void notify(final PrnfbNotification notification, PrnfbPullRequestAction .withPostContent(postContent)// .appendBasicAuth(notification); for (Header header : notification.getHeaders()) { - urlInvoker.withHeader(header.getName(), renderer.render(header.getValue())); + urlInvoker// + .withHeader(header.getName(), renderer.render(header.getValue())); } - invoker.invoke(urlInvoker.withProxyServer(notification.getProxyServer()) // + invoker.invoke(urlInvoker// + .withProxyServer(notification.getProxyServer()) // .withProxyPort(notification.getProxyPort())// .withProxyUser(notification.getProxyUser())// .withProxyPassword(notification.getProxyPassword())); diff --git a/src/main/resources/admin.vm b/src/main/resources/admin.vm index ab798e2..b3c1847 100644 --- a/src/main/resources/admin.vm +++ b/src/main/resources/admin.vm @@ -147,10 +147,10 @@
- Trigger if pull request -
-
-
+ Triggers apply +
+
+