mirror of
https://github.com/go-gitea/gitea
synced 2025-10-26 08:58:24 +00:00
Upgrade golang to 1.25.1 and add descriptions for the swagger structs' fields (#35418)
This commit is contained in:
@@ -9,10 +9,16 @@ import (
|
||||
|
||||
// WatchInfo represents an API watch status of one repository
|
||||
type WatchInfo struct {
|
||||
Subscribed bool `json:"subscribed"`
|
||||
Ignored bool `json:"ignored"`
|
||||
Reason any `json:"reason"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
URL string `json:"url"`
|
||||
RepositoryURL string `json:"repository_url"`
|
||||
// Whether the repository is being watched for notifications
|
||||
Subscribed bool `json:"subscribed"`
|
||||
// Whether notifications for the repository are ignored
|
||||
Ignored bool `json:"ignored"`
|
||||
// The reason for the current watch status
|
||||
Reason any `json:"reason"`
|
||||
// The timestamp when the watch status was created
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
// The URL for managing the watch status
|
||||
URL string `json:"url"`
|
||||
// The URL of the repository being watched
|
||||
RepositoryURL string `json:"repository_url"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user