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

Commit

Permalink
Using entire injection URL regexp as group when no grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed May 9, 2016
1 parent 5a16a69 commit 63d51f7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/se/bjurr/prnfb/service/PrnfbVariable.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 63d51f7

Please sign in to comment.