Skip to content

Commit 8f55e27

Browse files
astrojuanlustsewd
andcommitted
Webhook example improvements
Co-authored-by: Santos Gallegos <[email protected]>
1 parent b443b4f commit 8f55e27

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/build-notifications.rst

+4-5
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@ Slack
136136
"fields": [
137137
{
138138
"type": "mrkdwn",
139-
"text": "*Project*: <https://readthedocs.org/projects/${project.slug}|${project.name}>"
139+
"text": "*Project*: <${project.url}|${project.name}>"
140140
},
141141
{
142142
"type": "mrkdwn",
143143
"text": "*Version*: ${version.name} (${build.commit})"
144144
},
145145
{
146146
"type": "mrkdwn",
147-
"text": "*Build*: <https://readthedocs.org/projects/${project.slug}/builds/${build.id}/|#${build.id}>"
147+
"text": "*Build*: <${build.url}|${build.id}>"
148148
}
149149
]
150150
}
@@ -167,12 +167,11 @@ Discord
167167
{
168168
"title": "Build logs",
169169
"url": "${build.url}",
170-
"description": "Text message. You can use Markdown here. *Italic* **bold** __underline__ ~~strikeout~~ [hyperlink](https://google.com) `code`",
171170
"color": 15258703,
172171
"fields": [
173172
{
174173
"name": "*Project*",
175-
"value": "https://readthedocs.org/projects/${project.slug}",
174+
"value": "${project.url}",
176175
"inline": true
177176
},
178177
{
@@ -182,7 +181,7 @@ Discord
182181
},
183182
{
184183
"name": "*Build*",
185-
"value": "https://readthedocs.org/projects/${project.slug}/builds/${build.id}/"
184+
"value": "${build.url}"
186185
}
187186
]
188187
}

0 commit comments

Comments
 (0)