This repository has been archived by the owner on Jun 9, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Custom HTTP headers, proxy support, PULL_REQUEST_COMMENT_TEXT and PUL…
…L_REQUEST_VERSION variables Also: * Marking plugin as compatible with Stash Data Center * Replacing spaces in URL with %20
- Loading branch information
1 parent
067705e
commit a213fbd
Showing
21 changed files
with
749 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,10 +23,14 @@ The Pull Request Notifier for Stash can: | |
* Be configured to trigger on any pull request event. Including source branch change (RESCOPED_FROM) and target branch change (RESCOPED_TO). | ||
* Be configured to only trigger if the pull request mathches a filter. A filter text is constructed with any combination of the variables and then a regexp is constructed to match that text. | ||
* Authenticate with HTTP basic authentication. | ||
* Send custom HTTP headers | ||
* Can optionally use proxy to connect | ||
|
||
The filter text as well as the URL support variables. These are: | ||
|
||
* ${PULL_REQUEST_ID} Example: 1 | ||
* ${PULL_REQUEST_VERSION} Example: 1 | ||
* ${PULL_REQUEST_COMMENT_TEXT} Example: A comment | ||
* ${PULL_REQUEST_ACTION} Example: OPENED | ||
* ${PULL_REQUEST_AUTHOR_DISPLAY_NAME} Example: Administrator | ||
* ${PULL_REQUEST_AUTHOR_EMAIL} Example: [email protected] | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package se.bjurr.prnfs.settings; | ||
|
||
import static com.google.common.base.Preconditions.checkNotNull; | ||
import static com.google.common.base.Strings.emptyToNull; | ||
import static com.google.common.base.Strings.nullToEmpty; | ||
|
||
public class Header { | ||
|
||
private final String name; | ||
private final String value; | ||
|
||
public Header(String name, String value) { | ||
this.name = checkNotNull(emptyToNull(nullToEmpty(name).trim())); | ||
this.value = checkNotNull(emptyToNull(nullToEmpty(value).trim())); | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
} |
Oops, something went wrong.