Skip to content

Commit 03ea096

Browse files
Trion129bradfitz
authored andcommitted
gerrit: add messageWithFooter to RevisionInfo
I am working on a change in chromium/infra https://chromium-review.googlesource.com/c/infra/infra/+/1379425 We use the gerrit library's structs and currently it doesn't include the messageWithFooter property in object. So this change adds it. Change-Id: I95cc8c25b2997d02548df462778b2b264c2db5cf Reviewed-on: https://go-review.googlesource.com/c/156438 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 7db4a03 commit 03ea096

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

gerrit/gerrit.go

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -332,14 +332,15 @@ type ApprovalInfo struct {
332332
// obtained by adding o parameters as described at:
333333
// https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-changes
334334
type RevisionInfo struct {
335-
Draft bool `json:"draft"`
336-
PatchSetNumber int `json:"_number"`
337-
Created TimeStamp `json:"created"`
338-
Uploader *AccountInfo `json:"uploader"`
339-
Ref string `json:"ref"`
340-
Fetch map[string]*FetchInfo `json:"fetch"`
341-
Commit *CommitInfo `json:"commit"`
342-
Files map[string]*FileInfo `json:"files"`
335+
Draft bool `json:"draft"`
336+
PatchSetNumber int `json:"_number"`
337+
Created TimeStamp `json:"created"`
338+
Uploader *AccountInfo `json:"uploader"`
339+
Ref string `json:"ref"`
340+
Fetch map[string]*FetchInfo `json:"fetch"`
341+
Commit *CommitInfo `json:"commit"`
342+
Files map[string]*FileInfo `json:"files"`
343+
MessageWithFooter string `json:"messageWithFooter"`
343344
// TODO: more
344345
}
345346

0 commit comments

Comments
 (0)