Move all the code in an application and stores Announcements in the database so they can be marked as closed

This commit is contained in:
T'rahk Rokym
2025-04-27 12:33:02 +02:00
parent c9b07c12a0
commit 97f603c138
21 changed files with 706 additions and 404 deletions

View File

@@ -9,11 +9,12 @@ To register an AppAnnouncementHook class, you would do the following:
```python
from allianceauth import hooks
from allianceauth.services.hooks import AppAnnouncementHook
from allianceauth.admin_status.hooks import AppAnnouncementHook
@hooks.register('app_announcement_hook')
def announcement_hook():
return AppAnnouncementHook("Your app name", "USERNAME/REPOSITORY_NAME", AppAnnouncementHook.RepositoryKind.GITLAB)
return AppAnnouncementHook("Your app name", "USERNAME/REPOSITORY_NAME", AppAnnouncementHook.Service.GITLAB)
```
```{eval-rst}