diff options
Diffstat (limited to 'modules/structs/repo_watch.go')
-rw-r--r-- | modules/structs/repo_watch.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/structs/repo_watch.go b/modules/structs/repo_watch.go new file mode 100644 index 0000000..0d0b7c4 --- /dev/null +++ b/modules/structs/repo_watch.go @@ -0,0 +1,18 @@ +// Copyright 2017 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + +package structs + +import ( + "time" +) + +// 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"` +} |