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
0. Install the dependencies with yarn (or alternative you can use `npm`)
48
+
```
49
+
yarn install
50
+
```
51
+
```
52
+
0. Create a .env file with your (configuration)[#configuration] and the edit it
53
+
```
54
+
cp .env.example .env
55
+
```
56
+
0. Compile the project to JavaScript
57
+
```
58
+
yarn build
59
+
```
60
+
0. Run the start command
61
+
```
62
+
yarn run start
63
+
```
64
+
0. You should see your webhook running on the port specified in the configuration below
65
+
30
66
31
67
We make use of the following environment variables:
32
68
@@ -45,6 +81,29 @@ We make use of the following environment variables:
45
81
46
82
### For sponsorships
47
83
84
+
### GitHub Configuration
85
+
86
+
#### Repositories
87
+
88
+
0. Open your repository settings on GitHub.
89
+
0. Go to the **Webhooks** section.
90
+
0. Click on **Add webhook**.
91
+
0. On the **Payload** field, enter the GitHub endpoint for your deployed webhook. For example `https://YOUR-SITE-HERE.herokuapp.com/github`.
92
+
0. For **Content type** we want to select `application/json`.
93
+
0. On **Which events would you like to trigger this webhook?** select `Let me select individual
94
+
events`.
95
+
0. On the list of events check the following:
96
+
- Check runs
97
+
- Forks
98
+
- Issues
99
+
- Pull requests
100
+
- Releases
101
+
- Stars
102
+
0. Make sure the `Active` checkbox is checked
103
+
0. Click on `Add webhook`
104
+
0. You will receive your first notification on Twitch Chat and StreamLabs letting you now your webhook has been configured correctly.
105
+
106
+
48
107
[Check the GitHub documentation](https://help.github.com/en/github/supporting-the-open-source-community-with-github-sponsors/configuring-webhooks-for-events-in-your-sponsored-account)
0 commit comments