Skip to content
This repository was archived by the owner on Jun 9, 2021. It is now read-only.

Commit 63d51f7

Browse files
committed
Using entire injection URL regexp as group when no grouping
1 parent 5a16a69 commit 63d51f7

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33
Changelog of Pull Request Notifier for Bitbucket.
44

55
## Unreleased
6+
### No issue
7+
Using entire injection URL regexp as group when no grouping
8+
9+
[9522f3dbf758846](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/9522f3dbf758846) Tomas Bjerre *2016-05-09 15:59:09*
10+
11+
## RC1
612
### GitHub [#109](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/issues/109) Refactor admin pages
713
Adding buttons after refactoring
814

9-
[4647eea2af4d8f7](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/4647eea2af4d8f7) Tomas Bjerre *2016-05-08 20:22:34*
15+
[5a16a6941de3a53](https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/commit/5a16a6941de3a53) Tomas Bjerre *2016-05-08 20:23:13*
1016

1117
Adding migration code for old settings format
1218

src/main/java/se/bjurr/prnfb/service/PrnfbRendererFactory.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ public class PrnfbRendererFactory {
1717
private final ApplicationPropertiesService propertiesService;
1818
private final RepositoryService repositoryService;
1919

20-
/**
21-
* @param variables
22-
* {@link #variables}
23-
*/
2420
public PrnfbRendererFactory(RepositoryService repositoryService, ApplicationPropertiesService propertiesService,
2521
AuthenticationContext authenticationContext) {
2622
this.repositoryService = repositoryService;

src/main/java/se/bjurr/prnfb/service/PrnfbVariable.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ public String resolve(PullRequest pullRequest, PrnfbPullRequestAction pullReques
8585
if (!m.find()) {
8686
return "";
8787
}
88+
if (m.groupCount() == 0) {
89+
return m.group();
90+
}
8891
return m.group(1);
8992
} else {
9093
return rawResponse;

0 commit comments

Comments
 (0)