diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f993c3e..6dfaac8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,16 @@ Changelog of Pull Request Notifier for Bitbucket. ## Unreleased +### No issue + Using entire injection URL regexp as group when no grouping + + [9522f3dbf758846](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/9522f3dbf758846) Tomas Bjerre *2016-05-09 15:59:09* + +## RC1 ### GitHub [#109](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/issues/109) Refactor admin pages Adding buttons after refactoring - [4647eea2af4d8f7](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/4647eea2af4d8f7) Tomas Bjerre *2016-05-08 20:22:34* + [5a16a6941de3a53](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/5a16a6941de3a53) Tomas Bjerre *2016-05-08 20:23:13* Adding migration code for old settings format diff --git a/src/main/java/se/bjurr/prnfb/service/PrnfbRendererFactory.java b/src/main/java/se/bjurr/prnfb/service/PrnfbRendererFactory.java index 385b0f82..50161528 100644 --- a/src/main/java/se/bjurr/prnfb/service/PrnfbRendererFactory.java +++ b/src/main/java/se/bjurr/prnfb/service/PrnfbRendererFactory.java @@ -17,10 +17,6 @@ public class PrnfbRendererFactory { private final ApplicationPropertiesService propertiesService; private final RepositoryService repositoryService; - /** - * @param variables - * {@link #variables} - */ public PrnfbRendererFactory(RepositoryService repositoryService, ApplicationPropertiesService propertiesService, AuthenticationContext authenticationContext) { this.repositoryService = repositoryService; diff --git a/src/main/java/se/bjurr/prnfb/service/PrnfbVariable.java b/src/main/java/se/bjurr/prnfb/service/PrnfbVariable.java index e03b7f4a..d08f2ca7 100644 --- a/src/main/java/se/bjurr/prnfb/service/PrnfbVariable.java +++ b/src/main/java/se/bjurr/prnfb/service/PrnfbVariable.java @@ -85,6 +85,9 @@ public String resolve(PullRequest pullRequest, PrnfbPullRequestAction pullReques if (!m.find()) { return ""; } + if (m.groupCount() == 0) { + return m.group(); + } return m.group(1); } else { return rawResponse;