This page describes the REST endpoints that are added by the automerger plugin.
Please also take note of the general information on the REST API.
POST /projects/{project-name}/automerger~config-downstream
Returns a map of branches that are one hop downstream to whether or not it should be skipped by default.
POST /projects/platform/test_data/automerger~config-downstream HTTP/1.0 Content-Type application/json;charset=UTF-8 { "subject": "DO NOT MERGE i am a test subject" }
HTTP/1.1 200 OK Content-Disposition: attachment Content-Type: application/json;charset=UTF-8 )]}' { "master": true, "branch_two": false }
GET /projects/{project-name}/branches/{branch-id}/automerger~all-config-downstream
Returns a list of branch names that are downstream, including ones more than one hop away.
GET /projects/platform/test_data/branches/test_branch_name/automerger~all-config-downstream HTTP/1.0
HTTP/1.1 200 OK Content-Disposition: attachment Content-Type: application/json;charset=UTF-8 )]}' [ "master", "branch_two" ]
POST /changes/{change-id}/revisions/{revision-id}/automerger~automerge-change
Automerges changes based on the given map, with merges being done with the strategy -s ours
if the value in the map is false.
POST /changes/Id3adb33f/revisions/1/automerger~automerge-change HTTP/1.0 Content-Type application/json;charset=UTF-8 { "master": true, "branch_two": false }
HTTP/1.1 204 No Content
GET /config/server/automerger~automerge-mode
Returns either “CHERRY-PICK” or “MERGE”.
GET /config/server/automerger~automerge-mode HTTP/1.1
HTTP/1.1 200 OK Content-Disposition: attachment Content-Type: application/json;charset=utf-8 )]}' "CHERRY-PICK"