summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJochen Peters <no-go-nix@outlook.com>2020-09-05 13:58:33 +0200
committerGitHub <noreply@github.com>2020-09-05 12:58:33 +0100
commit385433d2f4522690ae01ff262e6c8952d88d75af (patch)
tree7e088323352588cb980322858d5417b6b05b3e8b /modules
parentdba5d82f86dc9dc757404f03bf80ebbe28a5a0b1 (diff)
downloadgitea-385433d2f4522690ae01ff262e6c8952d88d75af.tar.gz
gitea-385433d2f4522690ae01ff262e6c8952d88d75af.zip
additional data for type StopWatch in swagger api (#12458)
* additional data for type StopWatch in swagger api * fix lint-backend issue with gofmt * fix format in v1_json with 'make generate-swagger' * using issue.LoadRepo() instead of getRepositoryByID() Co-authored-by: jochen@homeland <no-go@localhost> Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules')
-rw-r--r--modules/structs/issue_stopwatch.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/structs/issue_stopwatch.go b/modules/structs/issue_stopwatch.go
index 10510e36ef..8599e07273 100644
--- a/modules/structs/issue_stopwatch.go
+++ b/modules/structs/issue_stopwatch.go
@@ -11,8 +11,11 @@ import (
// StopWatch represent a running stopwatch
type StopWatch struct {
// swagger:strfmt date-time
- Created time.Time `json:"created"`
- IssueIndex int64 `json:"issue_index"`
+ Created time.Time `json:"created"`
+ IssueIndex int64 `json:"issue_index"`
+ IssueTitle string `json:"issue_title"`
+ RepoOwnerName string `json:"repo_owner_name"`
+ RepoName string `json:"repo_name"`
}
// StopWatches represent a list of stopwatches