app: return the name of the Go branch in the JSON state of subrepos
We want to pass this down to the coordinator so each
dashboard.BuildConfig can have its own policy on which branches to
build. For example, we'll have NetBSD skip building subrepos for Go
versions that are too old.
Updates golang/go#23102
Change-Id: I40d35c9c5a6d4455772430c169dbea054929545e
Reviewed-on: https://go-review.googlesource.com/83536
Reviewed-by: Andrew Bonventre <andybons@golang.org>
diff --git a/types/types.go b/types/types.go
index f64bbbf..ac73beb 100644
--- a/types/types.go
+++ b/types/types.go
@@ -45,6 +45,11 @@
// Branch is the branch of this commit, e.g. "master" or "dev.ssa".
Branch string `json:"branch"`
+ // GoBranch is the branch of the GoRevision, for subrepos.
+ // It is empty for the main repo.
+ // Otherwise it's of the form "master", "release-branch.go1.8", etc.
+ GoBranch string `json:"goBranch,omitempty"`
+
// Author is the author of this commit in standard git form
// "Name <email>".
Author string `json:"author"`