Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 1265c2f

Browse files
Pablo MercadoSameer Naik
andauthored
Apply suggestions from code review
Co-authored-by: Sameer Naik <[email protected]>
1 parent ff6553d commit 1265c2f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/guides/bridges/webhook-to-slack.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The `eventType` and `eventSource` CloudEvents attributes are being set for furth
6666

6767
## Slack Target
6868

69-
Salesforce Target requires:
69+
Slack Target requires:
7070

7171
- Creating a new [Slack App][slack-apps]: add the `chat:write` permission under `Bot Token Scopes`, then install the application at your workspace.
7272
- A Slack API token: from the **Install App** menu retrieve the OAuth Access token that begins with `xoxb-`.
@@ -130,10 +130,10 @@ spec:
130130
In order to connect all components we will setup these elements:
131131

132132
- A central Broker that receives messages from the Source
133-
- A Trigger that consumes Webhook events filtering by the `webhook.slack.postmessage` type and sends then to the transformation Function.
134-
- A Trigger that consumes transformed events filtering by the `com.slack.webapi.chat.postMessage` type and sends then to the Slack target.
133+
- A Trigger that consumes Webhook events filtered by the `webhook.slack.postmessage` type and sends them to the transformation Function.
134+
- A Trigger that consumes transformed events filtered by the `com.slack.webapi.chat.postMessage` type and sends them to the Slack target.
135135

136-
The Broker name is set to `default` to match the one used at the already created Webhook Source.
136+
The Broker name is set to `default` to match the one used at the Webhook Source earlier.
137137

138138
```yaml
139139
apiVersion: eventing.knative.dev/v1
@@ -182,11 +182,10 @@ spec:
182182

183183
Retrieve the URL where the Webhook is listening for incoming requests.
184184

185-
```sh
186-
kubectl get webhooksources.sources.triggermesh.io post-message
185+
```console
186+
$ kubectl get webhooksources.sources.triggermesh.io post-message
187187
NAME READY REASON URL SINK AGE
188188
post-message True https://webhooksource-post-message.woodford.dev.triggermesh.io http://broker-ingress.knative-eventing.svc.cluster.local/woodford/default 61s
189-
```
190189
191190
Use `curl` or any HTTP capable client to post messages at Slack.
192191

0 commit comments

Comments
 (0)