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 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new variable for storing a regex match on another variable value. #…
- Loading branch information
1 parent
ab5e796
commit c8cb7b1
Showing
9 changed files
with
237 additions
and
8 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 |
---|---|---|
|
@@ -56,6 +56,7 @@ The filter text as well as the URL support variables. These are: | |
| `${BUTTON_TRIGGER_TITLE}` | Example: `Trigger Notification` | | ||
| `${BUTTON_FORM_DATA}` | The form data that was submitted | | ||
| `${INJECTION_URL_VALUE}` | Value retrieved from any URL | | ||
| `${VARIABLE_REGEX_MATCH}` | The result of custom regex applied to a variable | | ||
| `${PULL_REQUEST_URL}` | Example: `http://localhost:7990/projects/PROJECT_1/repos/rep_1/pull-requests/1` | | ||
| `${PULL_REQUEST_USER_DISPLAY_NAME}` | Example: `Some User` | | ||
| `${PULL_REQUEST_USER_EMAIL_ADDRESS}` | Example: `[email protected]` | | ||
|
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
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 |
---|---|---|
|
@@ -70,6 +70,7 @@ | |
<li><b>${BUTTON_TRIGGER_TITLE}</b> Example: Trigger Notification</li> | ||
<li><b>${BUTTON_FORM_DATA}</b> The form data that was submitted</li> | ||
<li><b>${INJECTION_URL_VALUE}</b> If injection URL configured</li> | ||
<li><b>${VARIABLE_REGEX_MATCH}</b> If variable regex is configured</li> | ||
<li><b>${PULL_REQUEST_USER_DISPLAY_NAME}</b> Example: Some User</li> | ||
<li><b>${PULL_REQUEST_USER_EMAIL_ADDRESS}</b> Example: [email protected]</li> | ||
<li><b>${PULL_REQUEST_USER_ID}</b> Example: 1</li> | ||
|
@@ -497,6 +498,21 @@ | |
</div> | ||
</fieldset> | ||
|
||
<h4>Variable Regex Match</h4> | ||
<p>Apply custom regex to a variable. Uses first capture group if one is provided.</p> | ||
<fieldset class="group"> | ||
<div class="field-group"> | ||
<label>Variable Name </label> | ||
<input class="text long-field" type="text" name="variableName"> | ||
<div class="description"></div> | ||
</div> | ||
<div class="field-group"> | ||
<label>Variable Regex </label> | ||
<input class="text long-field" type="text" name="variableRegex"> | ||
<div class="description">Regular expression to match against the variable value.</div> | ||
</div> | ||
</fieldset> | ||
|
||
<h4>Basic authentication</h4> | ||
<p>Optional basic authentication details.</p> | ||
<fieldset class="group"> | ||
|
Oops, something went wrong.