Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/content/developer-tools/webhooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Now, for the fun part, to meet her requirements Sheila writes out the following
"type": "section",
"text": {
"type": "mrkdwn",
"text": "The <{{data.self_html_url}}|{{data.name}}{{#if (truth data.version)}} ({{data.version}}){{/if}}> {{data.format}} package is ready for download."
"text": "The <{{data.self_webapp_url}}|{{data.name}}{{#if (truth data.version)}} ({{data.version}}){{/if}}> {{data.format}} package is ready for download."
}
},
{{#each data.tags.info}}
Expand Down Expand Up @@ -323,7 +323,8 @@ An example of a `Package` payload, sent for webhooks emitted by packages:
"release": null,
"repository": "testo2",
"repository_url": "https://api.cloudsmith.io/repos/my-org/my-repo/",
"self_html_url": "https://app.cloudsmith.com/~my-org/repos/my-repo/packages/detail/my-package/",
"self_html_url": "https://app.cloudsmith.com/~my-org/repos/my-repo/packages/detail/my-package/package-version",
"self_webapp_url": "https://app.cloudsmith.com/my-org/r/my-repo/my-package-format/my-package-name/package-version/package-id",
"self_url": "https://api.cloudsmith.io/packages/my-org/my-repo/xKYgfsOsboz6/",
"size": 2204,
"slug": "my-package",
Expand Down
2 changes: 1 addition & 1 deletion src/content/integrations/integrating-with-slack.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Although Slack consumes JSON, the format of a Cloudsmith webhook payload differs
"fallback": "{{ data.filename }} version {{ data.version }} by {{ data.uploader }}",
"text": "{{ data.summary }}",
"title": "{{ data.filename }}",
"title_link": "{{ data.self_html_url }}",
"title_link": "{{ data.self_webapp_url }}",
"mrkdwn_in": ["fields"],
"color": "good",
"fields": [
Expand Down