@@ -319,6 +319,18 @@ paths:
319
319
- $ref : ' #/components/parameters/PageSize'
320
320
- $ref : ' #/components/parameters/Order'
321
321
- $ref : ' #/components/parameters/Search'
322
+ - in : query
323
+ name : type
324
+ description : |
325
+ Filter comment type. Use 'notes' to show only maintainer notes,
326
+ 'comments' to show only regular comments, or omit for default behavior
327
+ (which only shows regular comments).
328
+ schema :
329
+ title : ' '
330
+ type : string
331
+ enum :
332
+ - notes
333
+ - comments
322
334
responses :
323
335
' 200 ' :
324
336
description : ' List of comments'
@@ -339,6 +351,43 @@ paths:
339
351
$ref : ' #/components/schemas/Error'
340
352
tags :
341
353
- comments
354
+ post :
355
+ summary : Create a maintainer note in the cover
356
+ description : |
357
+ Create a maintainer note in the cover
358
+ operationId : cover_maintainer_note_create
359
+ requestBody :
360
+ $ref : ' #/components/requestBodies/MaintainerNote'
361
+ responses :
362
+ ' 201 ' :
363
+ description : ' Created maintainer note'
364
+ headers :
365
+ Link :
366
+ $ref : ' #/components/headers/Link'
367
+ content :
368
+ application/json :
369
+ schema :
370
+ $ref : ' #/components/schemas/Comment'
371
+ ' 400 ' :
372
+ description : ' Invalid request'
373
+ content :
374
+ application/json :
375
+ schema :
376
+ $ref : ' #/components/schemas/ErrorMaintainerNote'
377
+ ' 403 ' :
378
+ description : ' Forbidden'
379
+ content :
380
+ application/json :
381
+ schema :
382
+ $ref : ' #/components/schemas/Error'
383
+ ' 404 ' :
384
+ description : ' Not found'
385
+ content :
386
+ application/json :
387
+ schema :
388
+ $ref : ' #/components/schemas/Error'
389
+ tags :
390
+ - comments
342
391
/api/covers/{cover_id}/comments/{comment_id} :
343
392
parameters :
344
393
- in : path
@@ -356,7 +405,7 @@ paths:
356
405
title : Comment ID
357
406
type : integer
358
407
get :
359
- summary : Show a cover letter comment.
408
+ summary : Show a cover letter comment or maintainer note .
360
409
description : |
361
410
Retrieve a cover letter comment by its ID.
362
411
operationId : cover_comments_read
@@ -376,7 +425,7 @@ paths:
376
425
tags :
377
426
- comments
378
427
patch :
379
- summary : Update a cover letter comment (partial).
428
+ summary : Update a cover letter comment or maintainer note (partial).
380
429
description :
381
430
Partially update an existing cover letter comment.
382
431
You must be a maintainer of the project that the cover letter comment belongs to.
@@ -725,6 +774,18 @@ paths:
725
774
- $ref : ' #/components/parameters/PageSize'
726
775
- $ref : ' #/components/parameters/Order'
727
776
- $ref : ' #/components/parameters/Search'
777
+ - in : query
778
+ name : type
779
+ description : |
780
+ Filter comment type. Use 'notes' to show only maintainer notes,
781
+ 'comments' to show only regular comments, or omit for default behavior
782
+ (which only shows regular comments).
783
+ schema :
784
+ title : ' '
785
+ type : string
786
+ enum :
787
+ - notes
788
+ - comments
728
789
responses :
729
790
' 200 ' :
730
791
description : ' List of comments'
@@ -745,6 +806,43 @@ paths:
745
806
$ref : ' #/components/schemas/Error'
746
807
tags :
747
808
- comments
809
+ post :
810
+ summary : Create a maintainer note in the patch
811
+ description : |
812
+ Create a maintainer note in the patch
813
+ operationId : patch_maintainer_note_create
814
+ requestBody :
815
+ $ref : ' #/components/requestBodies/MaintainerNote'
816
+ responses :
817
+ ' 201 ' :
818
+ description : ' Created maintainer note'
819
+ headers :
820
+ Link :
821
+ $ref : ' #/components/headers/Link'
822
+ content :
823
+ application/json :
824
+ schema :
825
+ $ref : ' #/components/schemas/Comment'
826
+ ' 400 ' :
827
+ description : ' Invalid request'
828
+ content :
829
+ application/json :
830
+ schema :
831
+ $ref : ' #/components/schemas/ErrorMaintainerNote'
832
+ ' 403 ' :
833
+ description : ' Forbidden'
834
+ content :
835
+ application/json :
836
+ schema :
837
+ $ref : ' #/components/schemas/Error'
838
+ ' 404 ' :
839
+ description : ' Not found'
840
+ content :
841
+ application/json :
842
+ schema :
843
+ $ref : ' #/components/schemas/Error'
844
+ tags :
845
+ - comments
748
846
/api/patches/{patch_id}/comments/{comment_id} :
749
847
parameters :
750
848
- in : path
@@ -762,7 +860,7 @@ paths:
762
860
title : Comment ID
763
861
type : integer
764
862
get :
765
- summary : Show a patch comment.
863
+ summary : Show a patch comment or maintainer note .
766
864
description : |
767
865
Retrieve a patch comment by its ID and the ID of the patch.
768
866
operationId : patch_comments_read
@@ -782,7 +880,7 @@ paths:
782
880
tags :
783
881
- comments
784
882
patch :
785
- summary : Update a patch comment (partial).
883
+ summary : Update a patch comment or mantainer note (partial).
786
884
description :
787
885
Partially update an existing patch comment.
788
886
You must be a maintainer of the project that the patch comment belongs to.
@@ -1478,6 +1576,14 @@ components:
1478
1576
application/json :
1479
1577
schema :
1480
1578
$ref : ' #/components/schemas/CommentUpdate'
1579
+ MaintainerNote :
1580
+ required : true
1581
+ description : |
1582
+ A maintainer note for patch or cover letters.
1583
+ content :
1584
+ application/json :
1585
+ schema :
1586
+ $ref : ' #/components/schemas/MaintainerNote'
1481
1587
Patch :
1482
1588
required : true
1483
1589
description : |
@@ -1770,7 +1876,6 @@ components:
1770
1876
title : Message ID
1771
1877
type : string
1772
1878
readOnly : true
1773
- minLength : 1
1774
1879
maxLength : 255
1775
1880
list_archive_url :
1776
1881
title : List archive URL
@@ -1801,7 +1906,6 @@ components:
1801
1906
content :
1802
1907
title : Content
1803
1908
type : string
1804
- readOnly : true
1805
1909
minLength : 1
1806
1910
headers :
1807
1911
title : Headers
@@ -1831,6 +1935,21 @@ components:
1831
1935
type :
1832
1936
- ' null'
1833
1937
- ' boolean'
1938
+ MaintainerNote :
1939
+ type : object
1940
+ title : Maintainer note
1941
+ description : |
1942
+ The fields to set on a maintainer note.
1943
+ properties :
1944
+ content :
1945
+ title : Content
1946
+ type :
1947
+ - ' string'
1948
+ addressed :
1949
+ title : Addressed
1950
+ type :
1951
+ - ' null'
1952
+ - ' boolean'
1834
1953
CoverList :
1835
1954
type : object
1836
1955
title : Cover letters
@@ -3153,6 +3272,22 @@ components:
3153
3272
type : array
3154
3273
items :
3155
3274
type : string
3275
+ ErrorMaintainerNote :
3276
+ type : object
3277
+ title : A maintainer note create or update error.
3278
+ description : |
3279
+ A mapping of field names to validation failures.
3280
+ properties :
3281
+ content :
3282
+ title : Content
3283
+ type : array
3284
+ items :
3285
+ type : string
3286
+ addressed :
3287
+ title : Addressed
3288
+ type : array
3289
+ items :
3290
+ type : string
3156
3291
ErrorPatchUpdate :
3157
3292
type : object
3158
3293
title : A patch update error.
0 commit comments