Spaces:
Sleeping
Sleeping
JCai
commited on
Commit
·
ba9312a
1
Parent(s):
97c1ee3
add discord integration description file
Browse files- discord_integration.md +22 -0
discord_integration.md
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## Messaging team when the GitHub action completes (extra credit)
|
2 |
+
|
3 |
+
We chose Discord as our message system.
|
4 |
+
|
5 |
+
First, we created a new text-channel (labeled **#github-actions**) and set up a Webhook.
|
6 |
+
|
7 |
+

|
8 |
+
|
9 |
+
With the Webhook URL ready, we added it to our case study 1 repository.
|
10 |
+
(here, we use a different method than the in-class demo)
|
11 |
+
|
12 |
+
We navigated to the "**Settings**" tab in GitHub case study 1 repo, then went to "**Webhooks**" section on the left. We clicked the "**Add webhook**" button in the upper right corner.
|
13 |
+
|
14 |
+

|
15 |
+
|
16 |
+
To ensure proper message formatting, we appended “**/github**” to the end of the URL. We set the content type as “**application/json**” and configured it to send us all notifications.
|
17 |
+
|
18 |
+

|
19 |
+
|
20 |
+
After testing, we found that it worked seamlessly, and we all enjoyed the convenience it provided!
|
21 |
+
|
22 |
+

|