You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* yasu/slack-unfurl-links:
show number of changed files in longest shared prefix
escape and only show first line of commit msg
update docs with link unfurl
tests: add unit tests for parsing of GH links
add route to handle incoming slack event notifications
parse incoming unfurl links and try to construct supported GH types
add api route to send slack unfurl request
add slack atd bindings for url verification and chat unfurl
add logic for building message body of unfurled commit links
add slack incoming request signature validation
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,14 @@ Run the `_build/default/src/monorobot.exe` binary. The following commands are su
40
40
-**Incoming Webhooks:** To use [incoming webhooks](https://api.slack.com/messaging/webhooks), enable them in your app dashboard and create one for each channel you want to notify. Store them in the `slack_hooks` field of your secrets file. If you decide to notify additional channels later, you will need to update the secrets file with the new webhooks and restart the server.
41
41
42
42
43
+
### Link Unfurling
44
+
45
+
You can configure Monorobot to [unfurl GitHub links](https://api.slack.com/reference/messaging/link-unfurling) in Slack messages. Currently, commit links are supported.
46
+
47
+
1. Give your app `links:read` and `links:write`[permissions](https://api.slack.com/apps).
48
+
1. Configure your app to [support the Events API](https://api.slack.com/events-api#prepare). During the [url verification handshake](https://api.slack.com/events-api#the-events-api__subscribing-to-event-types__events-api-request-urls__request-url-configuration--verification__url-verification-handshake), you should tell Slack to direct event notifications to `<server_domain>/slack/events`. Ensure the server is running before triggering the handshake.
49
+
1.[Register the GitHub domains](https://api.slack.com/reference/messaging/link-unfurling#configuring_domains) you want to support.
50
+
43
51
### Documentation
44
52
45
53
The bot expects two configuration files to be present.
Copy file name to clipboardExpand all lines: documentation/secret_docs.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ A secrets file stores sensitive information. Unlike the repository configuration
19
19
|`gh_hook_token`| specify to ensure the bot only receives GitHub notifications from pre-approved repositories | Yes | - |
20
20
|`slack_access_token`| slack bot access token to enable message posting to the workspace | Yes | try to use webhooks defined in `slack_hooks` instead |
21
21
|`slack_hooks`| list of channel names and their corresponding webhook endpoint | Yes | try to use token defined in `slack_access_token` instead |
0 commit comments