aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2023-06-21 09:38:54 +0200
committerTaras Madan <tarasmadan@google.com>2023-06-29 11:11:23 +0000
commitefd7870928aa32417f409692ff7460242d852d2f (patch)
tree988a0702f84fc3ab153cdb371af72366eabf4c95
parent17669860953adfdeb932fe712c0d6b30fbcd8f19 (diff)
dashboard/app/getjson_test.go: rename fixCommit to vcsCommit
-rw-r--r--dashboard/app/public_json_api.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/dashboard/app/public_json_api.go b/dashboard/app/public_json_api.go
index bbf330e2f..0ed5bf3d8 100644
--- a/dashboard/app/public_json_api.go
+++ b/dashboard/app/public_json_api.go
@@ -10,13 +10,13 @@ import "encoding/json"
type publicAPIBugDescription struct {
Version int `json:"version"`
Title string `json:"title,omitempty"`
- FixCommits []fixCommit `json:"fix-commits,omitempty"`
+ FixCommits []vcsCommit `json:"fix-commits,omitempty"`
// links to the discussions
Discussions []string `json:"discussions,omitempty"`
Crashes []publicAPICrashDescription `json:"crashes,omitempty"`
}
-type fixCommit struct {
+type vcsCommit struct {
Title string `json:"title"`
Link string `json:"link,omitempty"`
Hash string `json:"hash,omitempty"`
@@ -45,13 +45,13 @@ func getExtAPIDescrForBugPage(bugPage *uiBugPage) *publicAPIBugDescription {
}
return []string{bugPage.Bug.ExternalLink}
}(),
- FixCommits: func() []fixCommit {
+ FixCommits: func() []vcsCommit {
if len(bugPage.Bug.Commits) == 0 {
return nil
}
- var res []fixCommit
+ var res []vcsCommit
for _, commit := range bugPage.Bug.Commits {
- res = append(res, fixCommit{
+ res = append(res, vcsCommit{
Title: commit.Title,
Hash: commit.Hash,
Link: commit.Link,