You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

git_hook.go 487B

12345678910111213141516171819
  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package structs
  4. // GitHook represents a Git repository hook
  5. type GitHook struct {
  6. Name string `json:"name"`
  7. IsActive bool `json:"is_active"`
  8. Content string `json:"content,omitempty"`
  9. }
  10. // GitHookList represents a list of Git hooks
  11. type GitHookList []*GitHook
  12. // EditGitHookOption options when modifying one Git hook
  13. type EditGitHookOption struct {
  14. Content string `json:"content"`
  15. }