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.

20 lines
559 B

  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package structs
  5. // GitHook represents a Git repository hook
  6. type GitHook struct {
  7. Name string `json:"name"`
  8. IsActive bool `json:"is_active"`
  9. Content string `json:"content,omitempty"`
  10. }
  11. // GitHookList represents a list of Git hooks
  12. type GitHookList []*GitHook
  13. // EditGitHookOption options when modifying one Git hook
  14. type EditGitHookOption struct {
  15. Content string `json:"content"`
  16. }