-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Setting Global pre receive hook in gitea using docker #34485
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
Comments
I don't think Gitea supports that feature. |
Hi @lunny We have pre receive hook need to replace in individual repository hook folder. Gitea documents suggestion if we run the Resynchronize hook action in admin page will do that action, but it won't work for we get below auto generated hook only. We are asking which folder need to maintain my hook to replace all repository prehooks by running Resynchronize hook action #!/usr/bin/env bash AUTO GENERATED BY GITEA, DO NOT MODIFY/usr/local/bin/gitea hook --config=/data/gitea/conf/app.ini pre-receive |
Do you mean you need to put your customized hook scripts to every repository? There is no such feature. You can put the hooks under |
@lunny We have put my pre receive custom hook script in the repository hook folder but it wont work and it work if my changes exist on gitea file alone. My requirement is simple we can't create the new branch in the name of matching with protected branch pattern from protected branch failed with below error. For example: My branch protection pattern as private/* and can't create branch in the name of "private/kali" For avid this issue we have wrote the custom hook and those hook need to run for all repositories. Is Gitea have Global webhook support. Also share the clear guidance how to use pre receive hook or else share any other idea to overcome that issue |
Looks like your protected branch rules prevent to push commits to such branch directly. You can change the protected branch rules. |
Description
we are currently facing issue where we created the required hooks in the custom/hooks/pre-receive.d but it was not working as expected
Gitea Version
1.23.8
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?
docker
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: