-
-
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
push
webhook doesn't fire when pull request is merged
#21129
Comments
I can confim we have the same issue after we upgraded our Gitea from 1.16 to 1.17. Here are the version with the issue: Also Tested: I can confirm the issue was not there for 1.16.9. My hunch is its this change: https://blog.gitea.io/2022/07/gitea-1.17.0-is-released/#-change-initial-trust-model-to-committer-18335httpsgithubcomgo-giteagiteapull18335 (Change initial trust model to committer ) Can someone test please. |
Creating a tag doesn't fire events (Create in webhook) either, with /user/events being stuck. |
@jerry3k @RealStickman Did you fix it please? |
@xtulnx no fix available as of yet. |
|
This comment was marked as outdated.
This comment was marked as outdated.
Please do NOT do this, as you will be UNABLE to upgrade it in future! |
I just setup a Gitea 1.17.2 (docker/docker-rootless) locally and did a full test, all work as expected. If there is a problem, there are only a few possibilities:
(off topic: If you think you encounter a bug, it needs more information to debug. It would be very helpful to provide a reproducible setup (docker-compose config and steps) The details about client git push -> ssh server -> gitea serv sub-command -> git operation -> git hook runs scripts in the repository on the server -> gitea hook sub-command calls the internal HTTP api -> gitea web gets the push event -> insert into database (show activity on the dashboard) -> trigger webhook. gitea online editor -> git operation -> git hook -> (the same as above). Test Result Docker (root) Docker (rootless, merge PR with rebase) |
@wxiaoguang Thanks for the detailed reply. |
Follows #21129 (comment) * #21129 (comment) A lot of users are asking similar questions. The old content in FAQ doesn't seem to be related to the problem.
I still don't understand |
thanks |
Description
I have a sever with Drone and Gitea setup where I want to run steps every time a PR is merged. Drone ignores the PR closed/merged action, so I thought to filter by pushes to
main
, however Gitea doesn't dispatch apush
event when I merge my PRs (configured as rebase then fast-forward).Since I cannot find any documentation that lays out what events are pushed and when, I have to assume it's a bug that no push webhook is fired when new commits are pushed to a ref using a PR.
Gitea Version
1.17.2
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
gitea/gitea:1.17-rootless
with docker-compose,docker-ce 20.10.18
running on Ubuntu 22.04Database
PostgreSQL
The text was updated successfully, but these errors were encountered: