-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #537 from getwud/feature/#520_improve_templates
⭐ [TRIGGER] - Improve and templates
- Loading branch information
Showing
25 changed files
with
218 additions
and
174 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
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 |
---|---|---|
|
@@ -14,12 +14,13 @@ const configurationValid = { | |
once: true, | ||
mode: 'simple', | ||
|
||
simpletitle: 'New ${kind} found for container ${name}', | ||
simpletitle: | ||
'New ${container.updateKind.kind} found for container ${container.name}', | ||
|
||
simplebody: | ||
'Container ${name} running with ${kind} ${local} can be updated to ${kind} ${remote}\n${link}', | ||
'Container ${container.name} running with ${container.updateKind.kind} ${container.updateKind.localValue} can be updated to ${container.updateKind.kind} ${container.updateKind.remoteValue}${container.result && container.result.link ? "\\n" + container.result.link : ""}', | ||
|
||
batchtitle: '${count} updates available', | ||
batchtitle: '${containers.length} updates available', | ||
}; | ||
|
||
beforeEach(() => { | ||
|
@@ -76,7 +77,7 @@ test('trigger should send POST http request to notify endpoint', async () => { | |
body: { | ||
urls: 'maito://user:[email protected]', | ||
title: 'New tag found for container container1', | ||
body: 'Container container1 running with tag 1.0.0 can be updated to tag 2.0.0\n', | ||
body: 'Container container1 running with tag 1.0.0 can be updated to tag 2.0.0', | ||
format: 'text', | ||
type: 'info', | ||
}, | ||
|
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
Oops, something went wrong.