Skip to content

Add API point for patches: /state/

Tomi Sarvela requested to merge tsa/patchwork-fdo:master into master

Add API point patches/#/state/ to check or change patch state. This is to make possible automated external merge matching to patchsets, with fuzzier matching than current methods.

GET /patches/#/state/ returns JSON with 'state' key

POST /patches/#/state/ (with enough permissions) changes patch state to payload 'state' value.

Tested locally, but I'd like some more eyeballing if I've used correct Django practices in the code.

(Also fixes a typo in comments)

Edited by Tomi Sarvela

Merge request reports