您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920
  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. }