Closed
Description
Steps to reproduce
- Set up a default webhook; in my case, I used a Gitea webhook with JSON POST, but I would be surprised if the details mattered.
- Create a new repository under a user, i.e. outside of an organisation.
Expected behaviour
A repository
webhook event is sent to signal the creation of the new repository.
Actual behaviour
No webhook call.
Repository creation and deletion events are only executed when the repo belongs to an organisation:
gitea/modules/notification/webhook/webhook.go
Line 102 in 2c5b3c7
gitea/modules/notification/webhook/webhook.go
Line 117 in 2c5b3c7
While that probably made sense in the past, it doesn't mix well with default webhooks nor with the new system-wide webhooks (#10546). Those should fire on all repositories.
(I have not tested system-wide webhooks, but given the code mentioned above, it should behave the same.)
System information
- Gitea version (or commit ref): 1.11.6
- Git version: not relevant
- Operating system: unknown, but I can ask if it matters
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
- Can't test currently
- Log gist: not relevant
Metadata
Metadata
Assignees
Labels
No labels