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
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -207,14 +207,16 @@ All models and their managers provide async methods for database operations and
207
207
208
208
#### `EventLog`
209
209
210
-
`django_github_app.models.EventLog` maintains a history of incoming webhook events, storing both the event type and its full payload. Automatically cleans up old events based on your configuration, via the `acleanup_events` manager method and the `GITHUB_APP["DAYS_TO_KEEP_EVENTS"]` setting.
210
+
`django_github_app.models.EventLog` maintains a history of incoming webhook events, storing both the event type and its full payload.
211
211
212
-
Manager methods:
212
+
It also has support for automatically cleaning up old events based on your configuration, via the `acleanup_events` manager method and the `GITHUB_APP["DAYS_TO_KEEP_EVENTS"]` setting. For more details, see the sections on [`AUTO_CLEANUP_EVENTS`](#auto_cleanup_events) and [`DAYS_TO_KEEP_EVENTS`](#days_to_keep_events) in the [Configuration](#configuration) documentation below.
213
+
214
+
##### Manager methods
213
215
214
216
- `acreate_from_event`/`create_from_event`: Store incoming webhook events _(primarily for internal use)_
215
217
- `acleanup_events`/`cleanup_events`: Remove events older than specified days
216
218
217
-
Properties:
219
+
##### Properties
218
220
219
221
- `action`: Extract action from event payload, if present
220
222
@@ -234,12 +236,12 @@ async with AsyncGitHubAPI(installation_id=installation.installation_id) as gh:
0 commit comments