blob: 904fc16241d0f53a964f6eabb2c2fab7552d14be [file] [log] [blame] [view]
Dave Borowitz817f2532019-03-15 11:05:41 -07001# /changes REST API
2
3This page describes additions to the Gerrit change-related REST endpoints that
4are added by the @PLUGIN@ plugin.
5
6Please also take note of the general information on the
7[changes REST API](../../../Documentation/rest-api-changes.html).
8
9### <a id="get-change"> Get Change options
10_'GET /changes/[\{change-id\}](../../../Documentation/rest-api-changes.html#change-id)?@PLUGIN@--combined'_
11
12Adding the query parameter `@PLUGIN@--combined` adds a `CheckChangeInfo` entity
13to the `plugins` list in
14[`ChangeInfo`](../../../Documentation/rest-api-changes.html#change-info). All
15fields reflect up-to-date information read from primary storage, not a secondary
16index.
17
18### <a id="check-change-info"> CheckChangeInfo
19
20The `CheckChangeInfo` describes check information on a change.
21
22| Field Name | Description |
23| ---------------------- | ----------- |
24| `combined_check_state` | The [combined state](#combined-check-state) of all checks on the change.
25
26### <a id="combined-check-state"> CombinedCheckState (enum)
27
28The `CheckState` enum can have the following values:
29
30* `FAILED`: At least one required check failed; other checks may have passed, or
31 still be running.
32
33* `WARNING`: All relevant checks terminated, and at least one optional check
34 failed, but no required checks failed.
35
36* `IN_PROGRESS`: At least one relevant check is in a non-terminated
37 [state](rest-api-checks.md#check-state) (`NOT_STARTED`, `SCHEDULED`,
38 `RUNNING`), and no required checks failed. Some optional checks may have
39 failed.
40
41* `SUCCESSFUL`: All relevant checks terminated successfully.
42
43* `NOT_RELEVANT:` No checks are relevant to this change.