Update REST API examples to use copy conditions The examples should not show the usage of the deprecated fields that will be removed soon. Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: I480497ba7457d20ba6236a2f054c110eacc3676d Release-Notes: skip
diff --git a/Documentation/rest-api-projects.txt b/Documentation/rest-api-projects.txt index 6f0f937..6fa584ac 100644 --- a/Documentation/rest-api-projects.txt +++ b/Documentation/rest-api-projects.txt
@@ -3079,9 +3079,7 @@ }, "default_value": 0, "can_override": true, - "copy_min_score": true, - "copy_all_scores_if_no_change": true, - "copy_all_scores_on_trivial_rebase": true, + "copy_condition": "changekind:NO_CHANGE OR changekind:TRIVIAL_REBASE or is:MIN", "allow_post_submit": true } ] @@ -3126,9 +3124,7 @@ }, "default_value": 0, "can_override": true, - "copy_min_score": true, - "copy_all_scores_if_no_change": true, - "copy_all_scores_on_trivial_rebase": true, + "copy_condition": "changekind:NO_CHANGE OR changekind:TRIVIAL_REBASE or is:MIN", "allow_post_submit": true }, { @@ -3144,7 +3140,7 @@ }, "default_value": 0, "can_override": true, - "copy_any_score": true, + "copy_condition": "is:ANY", "allow_post_submit": true } ] @@ -3189,9 +3185,7 @@ }, "default_value": 0, "can_override": true, - "copy_min_score": true, - "copy_all_scores_if_no_change": true, - "copy_all_scores_on_trivial_rebase": true, + "copy_condition": "changekind:NO_CHANGE OR changekind:TRIVIAL_REBASE OR is:MIN", "allow_post_submit": true } ---- @@ -3250,7 +3244,7 @@ }, "default_value": 0, "can_override": true, - "copy_all_scores_if_no_change": true, + "copy_condition": "changekind:NO_CHANGE", "allow_post_submit": true } ---- @@ -3302,9 +3296,7 @@ }, "default_value": 0, "can_override": true, - "copy_min_score": true, - "copy_all_scores_if_no_change": true, - "copy_all_scores_on_trivial_rebase": true, + "copy_condition": "changekind:NO_CHANGE OR changekind:TRIVIAL_REBASE OR is:MIN", "allow_post_submit": true, "ignore_self_approval": true } @@ -3388,7 +3380,7 @@ "function": "MaxWithBlock" }, "Baz-Review": { - "copy_min_score": true + "copy_condition": "is:MIN" } } }