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
+27-17Lines changed: 27 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -244,34 +244,30 @@ paths:
244
244
schema:
245
245
$ref: '#/components/schemas/ErrorResponse'
246
246
247
-
/pull-requests/{pr_number}/comments:
247
+
/comments:
248
248
post:
249
-
summary: Create a PR Comment
249
+
summary: Create a Comment on Issue or PR
250
250
operationId: create_comment
251
+
x-pass-as-object: true
251
252
x-annotations:
252
253
readOnlyHint: false
253
254
description: |
254
-
Adds a final review comment to a pull request, either approving it or requesting changes. This is the primary tool for summarizing the outcome of a PR review.
255
-
255
+
Adds a comment to a pull request or issue.
256
256
The tool automatically adds a header indicating the AI agent source and prefixes the comment with a special icon.
257
257
258
258
**When to Use:**
259
-
This tool is for providing a conclusive, final review on a pull request.
260
259
260
+
**For Pull Requests:**
261
+
This is the primary tool for providing a conclusive, final review.
261
262
- **To Approve a PR:** Use this tool to leave a comment indicating your approval (e.g., "LGTM, thanks for the contribution!").
262
263
- **To Request Changes:** Use this tool to provide a clear, actionable list of changes required for the PR to be approved. This should be a summary of your findings after a detailed review.
263
264
264
-
**Note on Inline Comments:**
265
-
While this tool is for the final, summary comment, detailed line-by-line feedback should be provided through other means if available. This tool provides the final verdict.
266
-
tags: [Pull Requests]
267
-
parameters:
268
-
- name: pr_number
269
-
in: path
270
-
required: true
271
-
description: The number of the pull request to comment on.
272
-
schema:
273
-
type: integer
274
-
example: 123
265
+
**For Issues:**
266
+
Use this tool to add general comments, such as providing status updates, asking for clarification, or summarizing discussions.
267
+
268
+
**Note on Inline Comments (PRs):**
269
+
While this tool is for the final, summary comment on PRs, detailed line-by-line feedback should be provided through other means if available. This tool provides the final verdict.
270
+
tags: [Pull Requests, Issues]
275
271
requestBody:
276
272
required: true
277
273
content:
@@ -282,6 +278,14 @@ paths:
282
278
- body
283
279
- agent
284
280
properties:
281
+
pr_number:
282
+
type: integer
283
+
description: The number of the pull request (if commenting on a PR).
284
+
example: 123
285
+
issue_number:
286
+
type: integer
287
+
description: The number of the issue (if commenting on an issue).
288
+
example: 456
285
289
body:
286
290
type: string
287
291
description: The raw, unformatted content of the comment. The tool will handle templating.
@@ -297,8 +301,14 @@ paths:
297
301
application/json:
298
302
schema:
299
303
$ref: '#/components/schemas/SuccessResponse'
304
+
'400':
305
+
description: Bad Request (missing pr_number or issue_number).
0 commit comments