tanuki v0.2.0 Tanuki.Projects.GitHooks

Interact with git hooks (EE only)

Summary

Functions

POST /projects/:id/git_hooks

DELETE /projects/:id/git_hooks

GET /projects/:id/git_hooks

PUT /projects/:id/git_hooks

Functions

create(id, client, params)

POST /projects/:id/git_hooks

Adds a git hook to a specified project.

Parameters:

  • deny_delete_tag - Do not allow users to remove git tags with git push
  • commit_message_regex - Commit message regex
delete(id, client)

DELETE /projects/:id/git_hooks

Removes a git hook from a project. This is an idempotent method and can be called multiple times. Either the git hook is available or not.

list(id, client)

GET /projects/:id/git_hooks

Get a project git hook.

modify(id, client, params)

PUT /projects/:id/git_hooks

Edits a git hook for a specified project.

Parameters:

  • deny_delete_tag - Do not allow users to remove git tags with git push
  • commit_message_regex - Commit message regex