Commit 578f3e9
committed
fix: correct Slack webhook example code in documentation
- Fix ReferenceError by changing 'text: body' to 'text: body_markdown' on line 118
(the variable 'body' was never defined; should use 'body_markdown' from req.body)
- Fix invalid_blocks API error by changing header block text type from 'mrkdwn' to 'plain_text' on line 122
(Slack's header block type only supports plain_text, not mrkdwn)
- Rename 'title_markdown' to 'title' since the header block uses plain_text type, not markdown
(variable names should reflect their actual content)
These errors were preventing webhook messages from being sent to Slack.1 parent 55f4efd commit 578f3e9
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
| 92 | + | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
0 commit comments