-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Adding hooks during repository creation #2062
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
You can add your hooks on the UI. on every repository's settings -> hooks |
Hi @lunny thanks for your feedback. Yes I know, that I can do this manually every time on a repository. I am looking for a solution to do this automatically every time a repo is newly created. I would like to check also, if there could be an option to integrate within gitea, that maybe also the groups and rights for a user could be used for a granulated rights management. So my question is: How to add additional hooks by default during gitea repo creation. Thanks for help |
You can change default hook templates system-wide in |
Hi @lafriks ok, that is also an option but in case that they will only make sense to gitea integration and I also want them to be administrateable via the gitea gui, I think those should be added into gitea. That is at least what I would prefer. |
Content moved to #2090 |
maybe this PR will fix that? @TomFreudenberg #1975 |
Content moved to #2090 |
Hi @lunny should I do something else. If you marked that as feature and proposal, this means it can`t work currently? Correct? Thanks for some guidiance. |
It's marked as proposal for initial issue. |
Just checked and hooks seems to work just fine.
update:
post-receive:
When pushing to repository I get output:
|
@TomFreudenberg I added this proposal and feature that you said
This is a feature that Gitea didn't support. We need some PRs to do that, So I marked this as Another issue you mentioned above is that custom hooks is not triggered when push, @lafriks has answered that. Thanks, |
To do not overload this ticket, I have created a separate one and moved relevant content away. Hopefully you agree to that procedure. |
Replaced by #7365 |
[x]
):Description
Hi, in case that your discourse forum currently is empty, I hopefully may ask this question here.
I currently use gitolite for a fine granulated rights management but like to replace it due to the nice interface from gitea and easier user experience.
It seems to me easy just to create some additional git-hooks to gitea which are working like gitolite.
Where is the "best place" to automatically integrate such kind of hooks. As I saw, the hooks from gitea, are prepared at models/repo.go->createDelegateHooks
Would this be the right place to also add some additional default hooks?
Thanks for a short hint how you would suggest to proceed.
Tom
The text was updated successfully, but these errors were encountered: