gitea源码

12345678910111213141516171819202122232425
  1. // Copyright 2017 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package structs
  4. import (
  5. "time"
  6. )
  7. // WatchInfo represents an API watch status of one repository
  8. type WatchInfo struct {
  9. // Whether the repository is being watched for notifications
  10. Subscribed bool `json:"subscribed"`
  11. // Whether notifications for the repository are ignored
  12. Ignored bool `json:"ignored"`
  13. // The reason for the current watch status
  14. Reason any `json:"reason"`
  15. // The timestamp when the watch status was created
  16. CreatedAt time.Time `json:"created_at"`
  17. // The URL for managing the watch status
  18. URL string `json:"url"`
  19. // The URL of the repository being watched
  20. RepositoryURL string `json:"repository_url"`
  21. }