File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,24 @@ A comment MESSAGE can be provided."
393
393
(resp (gerrit-rest-sync-v2 " GET" req)))
394
394
(assoc 'labels (cdr resp))))
395
395
396
+ (defun gerrit-rest-change-get-description (changenr patchsetnr )
397
+ " Return the description of a patchset with PATCHSETNR of a change CHANGENR."
398
+ (interactive " sEnter a changenr: \n sEnter a patchsetnr :" )
399
+ (setq thi::patchsetnr 1 )
400
+ (gerrit-rest-sync-v2 " GET"
401
+ (format " /changes/%s /revisions/%s /description "
402
+ changenr patchsetnr)))
403
+
404
+ (defun gerrit-rest-change-set-description (changenr patchsetnr description )
405
+ " Set the description of a patchset with PATCHSETNR of a change CHANGENR."
406
+ (interactive " sEnter a changenr: \n sEnter a patchset: \n sEnter a description: " )
407
+ (gerrit-rest-sync-v2 " PUT"
408
+ (format " /changes/%s /revisions/%s /description "
409
+ changenr patchsetnr)
410
+ :data (encode-coding-string
411
+ (json-encode
412
+ `((description . , description ))) 'utf-8 )))
413
+
396
414
(defun gerrit-rest-change-query (expression )
397
415
" Return information about changes that match EXPRESSION."
398
416
(interactive " sEnter a search expression: " )
You can’t perform that action at this time.
0 commit comments