@@ -221,13 +221,22 @@ const (
221
221
// ChangeInfo is a Gerrit data structure.
222
222
// See https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-info
223
223
type ChangeInfo struct {
224
- // ID is the ID of the change in the format
225
- // "'<project>~<branch>~<Change-Id>'", where 'project',
226
- // 'branch' and 'Change-Id' are URL encoded. For 'branch' the
227
- // refs/heads/ prefix is omitted.
228
- ID string `json:"id"`
229
- ChangeNumber int `json:"_number"`
230
- ChangeID string `json:"change_id"`
224
+ // The ID of the change. Subject to a 'GerritBackendFeature__return_new_change_info_id' experiment,
225
+ // the format is either "'<project>~<_number>'" (new format),
226
+ // or "'<project>~<branch>~<Change-Id>'" (old format).
227
+ // 'project', '_number', and 'branch' are URL encoded.
228
+ // For 'branch' the refs/heads/ prefix is omitted.
229
+ // The callers must not rely on the format.
230
+ ID string `json:"id"`
231
+
232
+ // ChangeNumber is a change number like "4247".
233
+ ChangeNumber int `json:"_number"`
234
+
235
+ // ChangeID is the Change-Id footer value like "I8473b95934b5732ac55d26311a706c9c2bde9940".
236
+ // Note that some of the functions in this package take a changeID parameter that is a {change-id},
237
+ // which is a distinct concept from a Change-Id footer. (See the documentation links for details,
238
+ // including https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-id).
239
+ ChangeID string `json:"change_id"`
231
240
232
241
Project string `json:"project"`
233
242
0 commit comments