diff options
author | Peter GardfjÀll <peter.gardfjall.work@gmail.com> | 2022-01-18 14:18:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 13:18:30 +0000 |
commit | 89a321435259afa911900c0047f2766d255d315b (patch) | |
tree | 6de3e83e6fc171c8b3c273c6b4d45eb760d79695 /modules/structs/repo.go | |
parent | 68b59d89669897b8dd1d5da6a470e02601819375 (diff) | |
download | gitea-89a321435259afa911900c0047f2766d255d315b.tar.gz gitea-89a321435259afa911900c0047f2766d255d315b.zip |
Add MirrorUpdated field to Repository API type (#18267)
Add the last update time to the repository api type.
Close #18266
Diffstat (limited to 'modules/structs/repo.go')
-rw-r--r-- | modules/structs/repo.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/structs/repo.go b/modules/structs/repo.go index 852af1f891..680277ea60 100644 --- a/modules/structs/repo.go +++ b/modules/structs/repo.go @@ -93,7 +93,9 @@ type Repository struct { AvatarURL string `json:"avatar_url"` Internal bool `json:"internal"` MirrorInterval string `json:"mirror_interval"` - RepoTransfer *RepoTransfer `json:"repo_transfer"` + // swagger:strfmt date-time + MirrorUpdated time.Time `json:"mirror_updated,omitempty"` + RepoTransfer *RepoTransfer `json:"repo_transfer"` } // CreateRepoOption options when creating repository |