Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

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