Skip to content

Proposal: hook improvements #8935

Open
Open
@guillep2k

Description

@guillep2k

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/proposalThe new feature has not been accepted yet but needs to be discussed first.type/summaryThis issue aggregates a bunch of other issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions