-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gitea submits webhooks on "status" event, even if webhook is defined only for "push" #33302
Comments
btw, I have tried to search, but have not found the same problem already reported |
I will investigate it and could you confirm whether you created a webhook with only a push event in Gitea? |
I'm affected by this as well. Judging by the JSON payload of the webhook I would guess this relates to Gitea Actions CI jobs... My webhook is configured to only run on The {
"commit": {
"id": "411acbb5098d2257592f94bfa1bbf121cb61df78",
[...]
},
"context": "Name of CI job",
"created_at": "2025-01-17T08:50:30Z",
"description": "Successful in 1m17s",
[...]
} So it seems the webhook gets fired twice per CI job. One with |
I'm affected too. Please backport this fix as soon as possible. Thanks |
I have the same problem! Gitea webhooks are send several times. |
@lunny do you have any time plan for next release with the fix? Thank you. |
Description
Dear gitea developers,
we have a few webhooks in our gitea repositories. We have one webhook to jenkins generic trigger and other webhook to woodpecker. Webhook to jenkins should be called only for push events, webhook to woodpecker should be called for custom events (create, push and pull request events).
After update from gitea 1.22.6 to 1.23.1, gitea started trigger jenkins job 7 times instead one.
In gitea webhook config we can really see seven POST webhook requests to jenkins and to woodpecker. But woodpecker starts just one job, maybe because woodpecker filter the webhook requests and process only those from "push" events. But jenkins just start new job for every webhook trigger.
I have found that after gitea triggers the webhook on woodpecker, the woodpecker requests "status" on gitea. Gitea starts then webhooks again for this "status" request, even the trigger should happen only for push events.
If I disable woodpecker webhook, gitea sends no webhook to woodpecker, woodpecker does not request "status" on gitea, which means, gitea sends only one webhook request to jenkins for the "push" event.
I have activated debug log in gitea, but I am not sure if there is something important. I can see
and then webhook_sender queue processing
Could you please verify if the webhook trigger filter works correctly and for "Push events" trigger really only on "push" events and not on "status" events?
Thank you very much checking and eventually fixing.
Regards,
Robert Wolf.
Gitea Version
1.23.1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
git version 2.30.2
Operating System
Debian 11.11 Linux
How are you running Gitea?
We use released gitea version, starting from systemd on Debian 11.11 Linux
Gitea version 1.23.1 built with GNU Make 4.3, go1.23.4 : bindata, sqlite, sqlite_unlock_notify
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: