-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Allow adding a default set of githooks and webhooks #770
Comments
Agreed! This would also make it much simpler to set up a static page hosting service, Github Pages style. You can create a webhook that triggers a site builder on commit to a particular branch, and have it installed on all pages by default. |
I'm going to take a crack at this, but I'd like some design feedback on the question of default vs all. For my purposes, adding an admin set of web hooks for all repos would be sufficient. These would be invisible to the individual org and repo settings pages, and could only be altered by admin. As the administrator of the system, I want my own set of hooks to fire upon pushes, for example. As I understand #770, it requests default webhooks instead, which are copied into new orgs and new repos, and may then be altered or deleted by the org/repo owner. This could work for my needs, too. I can implement whichever is more likely to be merged. Thanks! Thoughts? |
Partially implement go-gitea#770. Add "Default Webhooks" page in site admin UI. Persist to the existing webhooks table, but store with RepoID=0 and OrgID=0. Upon repo creation, copy the set of default webhooks into the new repo. Signed-off-by: Russell Aunger <rba@live.com>
Back-port to v1.4 for Wycliffe use. Partially implement go-gitea#770. Add "Default Webhooks" page in site admin UI. Persist to the existing webhooks table, but store with RepoID=0 and OrgID=0. Upon repo creation, copy the set of default webhooks into the new repo. Signed-off-by: Russell Aunger <rba@live.com>
Back-port to v1.4 for Wycliffe use. Partially implement go-gitea#770. Add "Default Webhooks" page in site admin UI. Persist to the existing webhooks table, but store with RepoID=0 and OrgID=0. Upon repo creation, copy the set of default webhooks into the new repo. Signed-off-by: Russell Aunger <rba@live.com>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
Partially implement #770. Add "Default Webhooks" page in site admin UI. Persist to the existing webhooks table, but store with RepoID=0 and OrgID=0. Upon repo creation, copy the set of default webhooks into the new repo.
Closed per merged PR |
It would be nice if it was possible to configure a default set of githooks and webhooks in the admin interface and/or at organization level.
That default set should then be applied to all newly created repositories. It should also be possible to use the repository name as variable.
The text was updated successfully, but these errors were encountered: