Skip to content

Commit e43bf47

Browse files
Quinten Yearsleybradfitz
Quinten Yearsley
authored andcommitted
gerrit: correct the field name for commit message in RevisionInfo
The actual field returned by Gerrit in practice is called CommitWithFooters: https://gerrit.googlesource.com/gerrit/+/b2ce0c1008bb2755b999f45bbf4c81b8bb3aaaaf/java/com/google/gerrit/extensions/common/RevisionInfo.java The field was apparently called "message with footers" here because of out-of-date or inaccurate documentation; docs updated in https://gerrit-review.googlesource.com/c/gerrit/+/227372. Change-Id: I03c6ecda9eb49f12250c044d16f10b78c56c3925 Reviewed-on: https://go-review.googlesource.com/c/build/+/181340 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent d967394 commit e43bf47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gerrit/gerrit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ type RevisionInfo struct {
341341
Fetch map[string]*FetchInfo `json:"fetch"`
342342
Commit *CommitInfo `json:"commit"`
343343
Files map[string]*FileInfo `json:"files"`
344-
MessageWithFooter string `json:"messageWithFooter"`
344+
CommitWithFooters string `json:"commit_with_footers"`
345345
Kind string `json:"kind"`
346346
// TODO: more
347347
}

0 commit comments

Comments
 (0)