-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add string substitution to template and custom parameters (#469)
* Add env subst for custom, template and channel in notify script * Only expand when starts by $ * Remove channel and add debug
- Loading branch information
1 parent
faaaeb0
commit ed921f2
Showing
3 changed files
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const payload = { | ||
blocks: [ | ||
{ | ||
type: "section", | ||
text: { | ||
type: "plain_text", | ||
text: "This message was generated with Javascript", | ||
}, | ||
}, | ||
], | ||
}; | ||
console.log(JSON.stringify(payload)); // Outputs JSON |