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
Copy file name to clipboardExpand all lines: README.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,12 @@ Fully supports both sync (WSGI) and async (ASGI) Django applications.
75
75
]
76
76
```
77
77
78
+
> [!IMPORTANT]
79
+
> Make sure your `GITHUB_APP["WEBHOOK_TYPE"]` setting matches your view choice:
80
+
>
81
+
> - Use `"async"` with `AsyncWebhookView`
82
+
> - Use `"sync"` with `SyncWebhookView`
83
+
78
84
5. Setup your GitHub App, either by registering a new one or importing an existing one, and configure django-github-app using your GitHub App's information.
79
85
80
86
You will need the following information from your GitHub App:
@@ -126,6 +132,7 @@ Fully supports both sync (WSGI) and async (ASGI) Django applications.
The library automatically detects whether you're using `AsyncWebhookView` or `SyncWebhookView` in your URL configuration and loads the corresponding async or sync versions of these handlers.
463
+
The library loads either async or sync versions of these handlers based on your `GITHUB_APP["WEBHOOK_TYPE"]` setting.
456
464
457
465
### System Checks
458
466
@@ -482,6 +490,7 @@ GITHUB_APP = {
482
490
"NAME": "",
483
491
"PRIVATE_KEY": "",
484
492
"WEBHOOK_SECRET": "",
493
+
"WEBHOOK_TYPE": "async",
485
494
}
486
495
```
487
496
@@ -492,6 +501,7 @@ The following settings are required:
492
501
- `NAME`
493
502
- `PRIVATE_KEY`
494
503
- `WEBHOOK_SECRET`
504
+
- `WEBHOOK_TYPE`
495
505
496
506
### `APP_ID`
497
507
@@ -573,6 +583,15 @@ GITHUB_APP = {
573
583
574
584
Secret used to verify webhook payloads from GitHub.
0 commit comments