зеркало из https://github.com/golang/build.git
gerrit: Add additional RevisionInfo fields
Adds fields for the 'draft' flag, patch set number, and revision uploader. Change-Id: I3780e2df046d9fe1065a6dc1b39400b4ea049d3a Reviewed-on: https://go-review.googlesource.com/13936 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Родитель
482b2ecd51
Коммит
264f8cb771
|
@ -215,11 +215,14 @@ type ApprovalInfo struct {
|
|||
// obtained by adding o parameters as described at:
|
||||
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-changes
|
||||
type RevisionInfo struct {
|
||||
Commit *CommitInfo `json:"commit"`
|
||||
Files map[string]*FileInfo `json:"files"`
|
||||
Created TimeStamp `json:"created"`
|
||||
Ref string `json:"ref"`
|
||||
Fetch map[string]*FetchInfo `json:"fetch"`
|
||||
Draft bool `json:"draft"`
|
||||
PatchSetNumber int `json:"_number"`
|
||||
Created TimeStamp `json:"created"`
|
||||
Uploader *AccountInfo `json:"uploader"`
|
||||
Ref string `json:"ref"`
|
||||
Fetch map[string]*FetchInfo `json:"fetch"`
|
||||
Commit *CommitInfo `json:"commit"`
|
||||
Files map[string]*FileInfo `json:"files"`
|
||||
// TODO: more
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче