mirror of
https://github.com/go-gitea/gitea.git
synced 2025-09-10 20:28:15 +00:00
Upgrade golang to 1.25.1 and add descriptions for the swagger structs' fields (#35418)
This commit is contained in:
@@ -5,9 +5,12 @@ package structs
|
||||
|
||||
// GitHook represents a Git repository hook
|
||||
type GitHook struct {
|
||||
Name string `json:"name"`
|
||||
IsActive bool `json:"is_active"`
|
||||
Content string `json:"content,omitempty"`
|
||||
// Name is the name of the Git hook
|
||||
Name string `json:"name"`
|
||||
// IsActive indicates if the hook is active
|
||||
IsActive bool `json:"is_active"`
|
||||
// Content contains the script content of the hook
|
||||
Content string `json:"content,omitempty"`
|
||||
}
|
||||
|
||||
// GitHookList represents a list of Git hooks
|
||||
@@ -15,5 +18,6 @@ type GitHookList []*GitHook
|
||||
|
||||
// EditGitHookOption options when modifying one Git hook
|
||||
type EditGitHookOption struct {
|
||||
// Content is the new script content for the hook
|
||||
Content string `json:"content"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user