app/build: expand JSON format output
This expands the JSON dashboard output to include everything that's
visible on the HTML dashboard (which includes all of the obviously
meaningful fields from the Commit objects).
Change-Id: Ib0437bec276a78ca9efd57fcc16041e40ccd3d4c
Reviewed-on: https://go-review.googlesource.com/16632
Reviewed-by: Andrew Gerrand <adg@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
diff --git a/types/types.go b/types/types.go
index a2b2d5a..0a63ca9 100644
--- a/types/types.go
+++ b/types/types.go
@@ -29,6 +29,10 @@
// Revision is the full git hash of the repo.
Revision string `json:"revision"`
+ // ParentRevisions is the full git hashes of the parents of
+ // Revision.
+ ParentRevisions []string `json:"parentRevisions"`
+
// GoRevision is the full git hash of the "go" repo, if Repo is not "go" itself.
// Otherwise this is empty.
GoRevision string `json:"goRevision,omitempty"`
@@ -36,6 +40,17 @@
// Date is the commit date of this revision, formatted in RFC3339.
Date string `json:"date"`
+ // Branch is the branch of this commit, e.g. "master" or "dev.ssa".
+ Branch string `json:"branch"`
+
+ // Author is the author of this commit in standard git form
+ // "Name <email>".
+ Author string `json:"author"`
+
+ // Desc is the commit message of this commit. It may be
+ // truncated.
+ Desc string `json:"desc"`
+
// Results are the build results for each of the builders in
// the same length slice BuildStatus.Builders.
// Each string is either "" (if no data), "ok", or the URL to failure logs.