- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 6.2k
 
Open
Labels
type/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.type/summaryThis issue aggregates a bunch of other issuesThis issue aggregates a bunch of other issues
Description
Here's a list of improvements for git and web hooks that might be of interest:
-  Global hook templates It would be useful to maintain a global hook list under admin's control that repo owners can choose from, update, etc. Git hooks could be either stored in the file-system or added to the database as text.
- Some details may be locked or open for the end user (e.g. destination URL, a query parameter in the case of web hooks, or some configuration variable to pass the git hook).
 
 - Script webhooks There should be a type of web hook that triggers a local script instead of starting a POST.
 - Vetted hooks It would be nice to enable custom hooks in repo templates as a way for admins/users with permission to create "vetted" git hooks and allow users to use them.
 -  Enforced hooks Another possibility is copying hooks even if the user has no permissions for them (i.e. forced by the admin/template ower---- with a warning, of course). That way admins can enforce policies, for example.
- If an org owner has the proper permissions, they could enforce certain hooks for every repo that is created/transferred to the organization.
 
 -  Configure hooks location (e.g. 
core.hooksPath) to solve issues like noexec file-systems. 
Related: #1089
alexanderadam, gabyx, mcesar, wangr0031 and Danoloan10
Metadata
Metadata
Assignees
Labels
type/proposalThe new feature has not been accepted yet but needs to be discussed first.The new feature has not been accepted yet but needs to be discussed first.type/summaryThis issue aggregates a bunch of other issuesThis issue aggregates a bunch of other issues