You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ai/mcp/server/github-workflow/openapi.yaml
+61Lines changed: 61 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -409,6 +409,67 @@ paths:
409
409
schema:
410
410
$ref: '#/components/schemas/ErrorResponse'
411
411
412
+
/issues/{issue_number}/assignees:
413
+
post:
414
+
summary: Assign an issue to users
415
+
operationId: assign_issue
416
+
x-pass-as-object: true
417
+
x-annotations:
418
+
readOnlyHint: false
419
+
description: |
420
+
Assigns a GitHub issue to one or more users.
421
+
422
+
**Permission Required:**
423
+
This is a restricted action. Before calling this tool, you **must** first use the `get_viewer_permission` tool to verify that you have `ADMIN`, `MAINTAIN`, or `WRITE` permissions.
424
+
tags: [Issues]
425
+
parameters:
426
+
- name: issue_number
427
+
in: path
428
+
required: true
429
+
description: The number of the issue to assign.
430
+
schema:
431
+
type: integer
432
+
requestBody:
433
+
required: true
434
+
content:
435
+
application/json:
436
+
schema:
437
+
type: object
438
+
required:
439
+
- assignees
440
+
properties:
441
+
assignees:
442
+
type: array
443
+
items:
444
+
type: string
445
+
description: An array of GitHub user logins to assign to the issue.
446
+
example: ["tobiu", "some-contributor"]
447
+
responses:
448
+
'200':
449
+
description: Issue assigned successfully.
450
+
content:
451
+
application/json:
452
+
schema:
453
+
$ref: '#/components/schemas/SuccessResponse'
454
+
'403':
455
+
description: Forbidden. The user does not have permission to assign issues.
456
+
content:
457
+
application/json:
458
+
schema:
459
+
$ref: '#/components/schemas/ErrorResponse'
460
+
'404':
461
+
description: Issue not found.
462
+
content:
463
+
application/json:
464
+
schema:
465
+
$ref: '#/components/schemas/ErrorResponse'
466
+
'500':
467
+
description: Internal server error, e.g., `gh` command failed.
0 commit comments