-
Notifications
You must be signed in to change notification settings - Fork 389
Expand file tree
/
Copy pathagent-output.json
More file actions
833 lines (833 loc) · 28.6 KB
/
agent-output.json
File metadata and controls
833 lines (833 loc) · 28.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/github/gh-aw-copilots/schemas/agent-output.json",
"title": "GitHub Agentic Workflows Agent Output",
"description": "Schema for the agent output file generated by the collect_output step in GitHub Agentic Workflows. This file contains the validated output from AI agents, structured as SafeOutput items with any validation errors. The actual business logic validation (such as ensuring update-issue has at least one updateable field) is handled by the JavaScript validation code.",
"type": "object",
"properties": {
"items": {
"type": "array",
"description": "Array of validated safe output items",
"items": {
"$ref": "#/$defs/SafeOutput"
}
},
"errors": {
"type": "array",
"description": "Array of validation errors encountered during processing",
"items": {
"type": "string"
}
}
},
"required": ["items", "errors"],
"additionalProperties": false,
"$defs": {
"SafeOutput": {
"title": "Safe Output Item",
"description": "Union type of all supported safe output entries",
"oneOf": [
{ "$ref": "#/$defs/CreateIssueOutput" },
{ "$ref": "#/$defs/AddCommentOutput" },
{ "$ref": "#/$defs/CreatePullRequestOutput" },
{ "$ref": "#/$defs/AddLabelsOutput" },
{ "$ref": "#/$defs/AddReviewerOutput" },
{ "$ref": "#/$defs/UpdateIssueOutput" },
{ "$ref": "#/$defs/UpdatePullRequestOutput" },
{ "$ref": "#/$defs/PushToPullRequestBranchOutput" },
{ "$ref": "#/$defs/CreatePullRequestReviewCommentOutput" },
{ "$ref": "#/$defs/CreateDiscussionOutput" },
{ "$ref": "#/$defs/UpdateDiscussionOutput" },
{ "$ref": "#/$defs/CloseDiscussionOutput" },
{ "$ref": "#/$defs/CloseIssueOutput" },
{ "$ref": "#/$defs/ClosePullRequestOutput" },
{ "$ref": "#/$defs/MarkPullRequestAsReadyForReviewOutput" },
{ "$ref": "#/$defs/MissingToolOutput" },
{ "$ref": "#/$defs/CreateCodeScanningAlertOutput" },
{ "$ref": "#/$defs/UpdateProjectOutput" },
{ "$ref": "#/$defs/UpdateReleaseOutput" },
{ "$ref": "#/$defs/AssignMilestoneOutput" },
{ "$ref": "#/$defs/AssignToAgentOutput" },
{ "$ref": "#/$defs/NoOpOutput" },
{ "$ref": "#/$defs/LinkSubIssueOutput" },
{ "$ref": "#/$defs/HideCommentOutput" },
{ "$ref": "#/$defs/DispatchWorkflowOutput" },
{ "$ref": "#/$defs/AutofixCodeScanningAlertOutput" },
{ "$ref": "#/$defs/SubmitPullRequestReviewOutput" },
{ "$ref": "#/$defs/ReplyToPullRequestReviewCommentOutput" },
{ "$ref": "#/$defs/ResolvePullRequestReviewThreadOutput" }
]
},
"CreateIssueOutput": {
"title": "Create Issue Output",
"description": "Output for creating a GitHub issue",
"type": "object",
"properties": {
"type": {
"const": "create_issue"
},
"title": {
"type": "string",
"description": "Title of the issue to create",
"minLength": 1
},
"body": {
"type": "string",
"description": "Body content of the issue",
"minLength": 1
},
"labels": {
"type": "array",
"description": "Optional labels to add to the issue",
"items": {
"type": "string"
}
},
"fields": {
"type": "array",
"description": "Optional issue fields to set after creating the issue",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Issue field name"
},
"value": {
"oneOf": [{ "type": "string" }, { "type": "number" }],
"description": "Issue field value"
}
},
"required": ["name", "value"],
"additionalProperties": false
}
}
},
"required": ["type", "title", "body"],
"additionalProperties": false
},
"AddCommentOutput": {
"title": "Add Issue Comment Output",
"description": "Output for adding a comment to an issue or pull request",
"type": "object",
"properties": {
"type": {
"const": "add_comment"
},
"body": {
"type": "string",
"description": "Comment body content",
"minLength": 1
}
},
"required": ["type", "body"],
"additionalProperties": false
},
"CreatePullRequestOutput": {
"title": "Create Pull Request Output",
"description": "Output for creating a GitHub pull request",
"type": "object",
"properties": {
"type": {
"const": "create_pull_request"
},
"title": {
"type": "string",
"description": "Title of the pull request",
"minLength": 1
},
"body": {
"type": "string",
"description": "Body content of the pull request",
"minLength": 1
},
"branch": {
"type": "string",
"description": "Optional branch name for the pull request"
},
"labels": {
"type": "array",
"description": "Optional labels to add to the pull request",
"items": {
"type": "string"
}
}
},
"required": ["type", "title", "body"],
"additionalProperties": false
},
"AddLabelsOutput": {
"title": "Add Issue Label Output",
"description": "Output for adding labels to an issue or pull request",
"type": "object",
"properties": {
"type": {
"const": "add_labels"
},
"labels": {
"type": "array",
"description": "Array of label names to add",
"items": {
"type": "string"
},
"minItems": 1
}
},
"required": ["type", "labels"],
"additionalProperties": false
},
"AddReviewerOutput": {
"title": "Add Reviewer Output",
"description": "Output for adding reviewers to a pull request",
"type": "object",
"properties": {
"type": {
"const": "add_reviewer"
},
"reviewers": {
"type": "array",
"description": "Array of GitHub usernames to add as reviewers",
"items": {
"type": "string"
},
"minItems": 1
},
"pull_request_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Pull request number (optional - uses triggering PR if not provided)"
}
},
"required": ["type", "reviewers"],
"additionalProperties": false
},
"UpdateIssueOutput": {
"title": "Update Issue Output",
"description": "Output for updating an existing issue. Note: The JavaScript validation ensures at least one of status, title, or body is provided.",
"type": "object",
"properties": {
"type": {
"const": "update_issue"
},
"status": {
"type": "string",
"description": "New status for the issue",
"enum": ["open", "closed"]
},
"title": {
"type": "string",
"description": "New title for the issue"
},
"body": {
"type": "string",
"description": "New body content for the issue"
},
"issue_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Issue number to update (for target '*')"
}
},
"required": ["type"],
"additionalProperties": false
},
"UpdatePullRequestOutput": {
"title": "Update Pull Request Output",
"description": "Output for updating an existing pull request's title and/or body. Supports replace, append, or prepend operations for body updates. Note: The JavaScript validation ensures at least one of title or body is provided.",
"type": "object",
"properties": {
"type": {
"const": "update_pull_request"
},
"title": {
"type": "string",
"description": "New title for the pull request (always replaces existing title)"
},
"body": {
"type": "string",
"description": "Body content for the pull request (behavior depends on operation field)"
},
"operation": {
"type": "string",
"description": "Update operation for body: 'replace' (default), 'append', or 'prepend'",
"enum": ["replace", "append", "prepend"]
},
"pull_request_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Pull request number to update (for target '*')"
}
},
"required": ["type"],
"additionalProperties": false
},
"PushToPullRequestBranchOutput": {
"title": "Push to Branch Output",
"description": "Output for pushing changes directly to a branch",
"type": "object",
"properties": {
"type": {
"const": "push_to_pull_request_branch"
},
"message": {
"type": "string",
"description": "Optional commit message"
},
"pull_request_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Pull request number (for target '*')"
}
},
"required": ["type"],
"additionalProperties": false
},
"CreatePullRequestReviewCommentOutput": {
"title": "Create Pull Request Review Comment Output",
"description": "Output for creating a review comment on a specific line of code",
"type": "object",
"properties": {
"type": {
"const": "create_pull_request_review_comment"
},
"path": {
"type": "string",
"description": "File path for the comment",
"minLength": 1
},
"line": {
"oneOf": [
{ "type": "number", "minimum": 1 },
{ "type": "string", "pattern": "^[1-9][0-9]*$" }
],
"description": "Line number for the comment"
},
"body": {
"type": "string",
"description": "Comment body content",
"minLength": 1
},
"start_line": {
"oneOf": [
{ "type": "number", "minimum": 1 },
{ "type": "string", "pattern": "^[1-9][0-9]*$" }
],
"description": "Optional start line for multi-line comments"
},
"side": {
"type": "string",
"description": "Side of the diff to comment on",
"enum": ["LEFT", "RIGHT"]
}
},
"required": ["type", "path", "line", "body"],
"additionalProperties": false
},
"SubmitPullRequestReviewOutput": {
"title": "Submit Pull Request Review Output",
"description": "Output for submitting a PR review with a status (APPROVE, REQUEST_CHANGES, COMMENT). All create_pull_request_review_comment outputs are collected and submitted as part of this review. If omitted, comments are submitted as a COMMENT review.",
"type": "object",
"properties": {
"type": {
"const": "submit_pull_request_review"
},
"body": {
"type": "string",
"description": "Review body text summarizing the review. Required for REQUEST_CHANGES; optional for APPROVE and COMMENT."
},
"event": {
"type": "string",
"description": "Review decision: APPROVE to approve the PR, REQUEST_CHANGES to request changes, or COMMENT for general feedback. Defaults to COMMENT when omitted.",
"enum": ["APPROVE", "REQUEST_CHANGES", "COMMENT"],
"default": "COMMENT"
}
},
"required": ["type"],
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"event": { "const": "REQUEST_CHANGES" }
},
"required": ["event"]
},
"then": {
"required": ["type", "event", "body"],
"properties": {
"body": {
"type": "string",
"minLength": 1
}
}
}
}
]
},
"ReplyToPullRequestReviewCommentOutput": {
"title": "Reply to Pull Request Review Comment Output",
"description": "Output for replying to an existing review comment on a pull request",
"type": "object",
"properties": {
"type": {
"const": "reply_to_pull_request_review_comment"
},
"comment_id": {
"type": ["number", "string"],
"description": "The numeric ID of the review comment to reply to"
},
"body": {
"type": "string",
"description": "The reply body text",
"minLength": 1
},
"pull_request_number": {
"type": ["number", "string"],
"description": "Pull request number (optional - uses triggering PR if not provided)"
}
},
"required": ["type", "comment_id", "body"],
"additionalProperties": false
},
"ResolvePullRequestReviewThreadOutput": {
"title": "Resolve Pull Request Review Thread Output",
"description": "Output for resolving a review thread on a pull request. Marks a review conversation as resolved after the feedback has been addressed.",
"type": "object",
"properties": {
"type": {
"const": "resolve_pull_request_review_thread"
},
"thread_id": {
"type": "string",
"minLength": 1,
"description": "The node ID of the review thread to resolve (e.g., 'PRRT_kwDOABCD...'). This is the GraphQL node ID, not a numeric ID."
}
},
"required": ["type", "thread_id"],
"additionalProperties": false
},
"CreateDiscussionOutput": {
"title": "Create Discussion Output",
"description": "Output for creating a GitHub discussion",
"type": "object",
"properties": {
"type": {
"const": "create_discussion"
},
"title": {
"type": "string",
"description": "Title of the discussion",
"minLength": 1
},
"body": {
"type": "string",
"description": "Body content of the discussion",
"minLength": 1
}
},
"required": ["type", "title", "body"],
"additionalProperties": false
},
"UpdateDiscussionOutput": {
"title": "Update Discussion Output",
"description": "Output for updating an existing GitHub discussion's title, body, and/or labels. Note: The JavaScript validation ensures at least one of title, body, or labels is provided.",
"type": "object",
"properties": {
"type": {
"const": "update_discussion"
},
"title": {
"type": "string",
"description": "New discussion title to replace the existing title"
},
"body": {
"type": "string",
"description": "New discussion body to replace the existing content"
},
"labels": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of label names to set on the discussion (replaces existing labels)"
},
"discussion_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Discussion number to update (for target '*')"
}
},
"required": ["type"],
"additionalProperties": false
},
"CloseDiscussionOutput": {
"title": "Close Discussion Output",
"description": "Output for closing a GitHub discussion with an optional comment and resolution reason",
"type": "object",
"properties": {
"type": {
"const": "close_discussion"
},
"body": {
"type": "string",
"description": "Comment body to add when closing the discussion",
"minLength": 1
},
"reason": {
"type": "string",
"description": "Optional resolution reason",
"enum": ["RESOLVED", "DUPLICATE", "OUTDATED", "ANSWERED"]
},
"discussion_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Discussion number to close (optional - uses triggering discussion if not provided)"
}
},
"required": ["type", "body"],
"additionalProperties": false
},
"CloseIssueOutput": {
"title": "Close Issue Output",
"description": "Output for closing a GitHub issue with a comment",
"type": "object",
"properties": {
"type": {
"const": "close_issue"
},
"body": {
"type": "string",
"description": "Comment body to add when closing the issue",
"minLength": 1
},
"issue_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Issue number to close (optional - uses triggering issue if not provided)"
}
},
"required": ["type", "body"],
"additionalProperties": false
},
"ClosePullRequestOutput": {
"title": "Close Pull Request Output",
"description": "Output for closing a GitHub pull request without merging, with a comment",
"type": "object",
"properties": {
"type": {
"const": "close_pull_request"
},
"body": {
"type": "string",
"description": "Comment body to add when closing the pull request",
"minLength": 1
},
"pull_request_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Pull request number to close (optional - uses triggering PR if not provided)"
}
},
"required": ["type", "body"],
"additionalProperties": false
},
"MarkPullRequestAsReadyForReviewOutput": {
"title": "Mark Pull Request as Ready for Review Output",
"description": "Output for marking a draft pull request as ready for review with a comment",
"type": "object",
"properties": {
"type": {
"const": "mark_pull_request_as_ready_for_review"
},
"reason": {
"type": "string",
"description": "Comment explaining why the PR is ready for review",
"minLength": 1
},
"pull_request_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Pull request number to mark as ready (optional - uses triggering PR if not provided)"
}
},
"required": ["type", "reason"],
"additionalProperties": false
},
"MissingToolOutput": {
"title": "Missing Tool Output",
"description": "Output for reporting missing tools or functionality",
"type": "object",
"properties": {
"type": {
"const": "missing_tool"
},
"tool": {
"type": "string",
"description": "Optional: Name of the missing tool",
"minLength": 1
},
"reason": {
"type": "string",
"description": "Reason why the tool is needed or information about the limitation",
"minLength": 1
},
"alternatives": {
"type": "string",
"description": "Optional alternative suggestions"
}
},
"required": ["type", "reason"],
"additionalProperties": false
},
"CreateCodeScanningAlertOutput": {
"title": "Create Code Scanning Alert Output",
"description": "Output for generating SARIF repository security advisories",
"type": "object",
"properties": {
"type": {
"const": "create_code_scanning_alert"
},
"sarif": {
"oneOf": [{ "type": "object" }, { "type": "string" }],
"description": "SARIF content as object or string"
},
"category": {
"type": "string",
"description": "Optional category for the code scanning alert"
}
},
"required": ["type", "sarif"],
"additionalProperties": false
},
"UpdateProjectOutput": {
"title": "Update Project Output",
"description": "Output for unified project operations: create projects, add items (issues/PRs/drafts), and update item fields",
"type": "object",
"properties": {
"type": {
"const": "update_project"
},
"project": {
"type": "string",
"description": "Project title, number, or GitHub project URL",
"minLength": 1
},
"content_type": {
"type": "string",
"enum": ["issue", "pull_request", "draft_issue"],
"description": "Type of content to add to the project board. Use 'issue' or 'pull_request' to add existing repo content, or 'draft_issue' to create a draft item inside the project."
},
"content_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Issue or PR number (preferred field)"
},
"issue": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Issue number (legacy field, use content_number instead)"
},
"pull_request": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "PR number (legacy field, use content_number instead)"
},
"draft_title": {
"type": "string",
"description": "Title for a Projects v2 draft issue. Required when content_type is 'draft_issue'."
},
"draft_body": {
"type": "string",
"description": "Optional body for a Projects v2 draft issue (markdown). Only used when content_type is 'draft_issue'."
},
"fields": {
"type": "object",
"description": "Custom project field values to set/update. Creates fields if missing.",
"additionalProperties": true
},
"create_if_missing": {
"type": "boolean",
"description": "Opt-in: allow creating the project board if it does not exist. Default behavior is update-only."
}
},
"required": ["type", "project"],
"additionalProperties": false
},
"UpdateReleaseOutput": {
"title": "Update Release Output",
"description": "Output for updating a GitHub release description",
"type": "object",
"properties": {
"type": {
"const": "update_release"
},
"tag": {
"type": "string",
"description": "Tag name of the release to update",
"minLength": 1
},
"operation": {
"type": "string",
"description": "Update operation: 'replace', 'append', or 'prepend'",
"enum": ["replace", "append", "prepend"]
},
"body": {
"type": "string",
"description": "Content to set or append to the release body",
"minLength": 1
}
},
"required": ["type", "tag", "operation", "body"],
"additionalProperties": false
},
"AssignMilestoneOutput": {
"title": "Assign Milestone Output",
"description": "Output for assigning an issue to a milestone",
"type": "object",
"properties": {
"type": {
"const": "assign_milestone"
},
"issue_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Issue number to assign milestone to"
},
"milestone_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Milestone number to assign (required)"
}
},
"required": ["type", "issue_number", "milestone_number"],
"additionalProperties": false
},
"AssignToAgentOutput": {
"title": "Assign to Agent Output",
"description": "Output for assigning a GitHub Copilot coding agent to an issue or pull request",
"type": "object",
"oneOf": [
{
"required": ["type", "issue_number"]
},
{
"required": ["type", "pull_number"]
}
],
"properties": {
"type": {
"const": "assign_to_agent"
},
"issue_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Issue number to assign agent to. Either issue_number or pull_number must be provided, but not both."
},
"pull_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Pull request number to assign agent to. Either issue_number or pull_number must be provided, but not both."
},
"agent": {
"type": "string",
"description": "Agent name or slug (defaults to 'copilot' if not provided)"
}
},
"additionalProperties": false
},
"NoOpOutput": {
"title": "No-Op Output",
"description": "Output for logging a message without taking any GitHub actions. Always available as a fallback to ensure human-visible artifacts.",
"type": "object",
"properties": {
"type": {
"const": "noop"
},
"message": {
"type": "string",
"description": "Message to log for transparency",
"minLength": 1
}
},
"required": ["type", "message"],
"additionalProperties": false
},
"LinkSubIssueOutput": {
"title": "Link Sub-Issue Output",
"description": "Output for linking an issue as a sub-issue of a parent issue",
"type": "object",
"properties": {
"type": {
"const": "link_sub_issue"
},
"parent_issue_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Parent issue number to link the sub-issue to"
},
"sub_issue_number": {
"oneOf": [{ "type": "number" }, { "type": "string" }],
"description": "Issue number to link as a sub-issue"
}
},
"required": ["type", "parent_issue_number", "sub_issue_number"],
"additionalProperties": false
},
"HideCommentOutput": {
"title": "Hide Comment Output",
"description": "Output for hiding a comment on a GitHub issue, pull request, or discussion",
"type": "object",
"properties": {
"type": {
"const": "hide_comment"
},
"comment_id": {
"type": "string",
"description": "Node ID of the comment to hide (e.g., 'IC_kwDOABCD123456')",
"minLength": 1
},
"reason": {
"type": "string",
"enum": ["SPAM", "ABUSE", "OFF_TOPIC", "OUTDATED", "RESOLVED"],
"description": "Optional reason for hiding the comment (default: SPAM). Valid values: SPAM, ABUSE, OFF_TOPIC, OUTDATED, RESOLVED"
}
},
"required": ["type", "comment_id"],
"additionalProperties": false
},
"DispatchWorkflowOutput": {
"title": "Dispatch Workflow Output",
"description": "Output for dispatching a workflow_dispatch event to trigger another workflow",
"type": "object",
"properties": {
"type": {
"const": "dispatch_workflow"
},
"workflow_name": {
"type": "string",
"description": "Name of the workflow to dispatch (without .md or .lock.yml extension)",
"minLength": 1
},
"inputs": {
"type": "object",
"description": "Input parameters for the workflow_dispatch event, matching the workflow's input schema",
"additionalProperties": true
}
},
"required": ["type", "workflow_name"],
"additionalProperties": false
},
"AutofixCodeScanningAlertOutput": {
"title": "Add Code Scanning Autofix Output",
"description": "Output for creating an autofix for a code scanning alert using the GitHub REST API",
"type": "object",
"properties": {
"type": {
"const": "autofix_code_scanning_alert"
},
"alert_number": {
"oneOf": [
{ "type": "number", "minimum": 1 },
{ "type": "string", "pattern": "^[1-9][0-9]*$" }
],
"description": "The security alert number to create an autofix for"
},
"fix_description": {
"type": "string",
"description": "Description of the fix being applied",
"minLength": 1
},
"fix_code": {
"type": "string",
"description": "The code changes to apply as the autofix",
"minLength": 1
}
},
"required": ["type", "alert_number", "fix_description", "fix_code"],
"additionalProperties": false
}
}
}