Skip to content

Commit 1feeae4

Browse files
SamMorrowDrumsCopilotgithub-actions[bot]
authored
feat(comments): add typed visibility tool inputs and outputs (#3384)
* feat(comments): add typed visibility tool inputs and outputs Preserve legacy argument normalization and text responses while exposing protocol-gated structured results for six hide/unhide tools. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * chore: regenerate license files Auto-generated by license-check workflow * chore: regenerate license files Auto-generated by license-check workflow * test(comments): pin protocol output parity and reason metadata Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> * fix(comments): reuse cached visibility output schema Clarify supported negotiated protocol versions without expanding runtime support. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 9cbd4b2 commit 1feeae4

8 files changed

Lines changed: 567 additions & 80 deletions

‎pkg/github/__toolsnaps__/hide_issue_comment.snap‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,25 @@
4444
],
4545
"type": "object"
4646
},
47-
"name": "hide_issue_comment"
47+
"name": "hide_issue_comment",
48+
"outputSchema": {
49+
"additionalProperties": false,
50+
"properties": {
51+
"is_minimized": {
52+
"type": "boolean"
53+
},
54+
"minimized_reason": {
55+
"description": "GitHub's lowercase, hyphenated reason (for example off-topic); omitted when unhidden.",
56+
"type": "string"
57+
},
58+
"node_id": {
59+
"type": "string"
60+
}
61+
},
62+
"required": [
63+
"node_id",
64+
"is_minimized"
65+
],
66+
"type": "object"
67+
}
4868
}

‎pkg/github/__toolsnaps__/hide_pull_request_review.snap‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,25 @@
5050
],
5151
"type": "object"
5252
},
53-
"name": "hide_pull_request_review"
53+
"name": "hide_pull_request_review",
54+
"outputSchema": {
55+
"additionalProperties": false,
56+
"properties": {
57+
"is_minimized": {
58+
"type": "boolean"
59+
},
60+
"minimized_reason": {
61+
"description": "GitHub's lowercase, hyphenated reason (for example off-topic); omitted when unhidden.",
62+
"type": "string"
63+
},
64+
"node_id": {
65+
"type": "string"
66+
}
67+
},
68+
"required": [
69+
"node_id",
70+
"is_minimized"
71+
],
72+
"type": "object"
73+
}
5474
}

‎pkg/github/__toolsnaps__/hide_pull_request_review_comment.snap‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,25 @@
4444
],
4545
"type": "object"
4646
},
47-
"name": "hide_pull_request_review_comment"
47+
"name": "hide_pull_request_review_comment",
48+
"outputSchema": {
49+
"additionalProperties": false,
50+
"properties": {
51+
"is_minimized": {
52+
"type": "boolean"
53+
},
54+
"minimized_reason": {
55+
"description": "GitHub's lowercase, hyphenated reason (for example off-topic); omitted when unhidden.",
56+
"type": "string"
57+
},
58+
"node_id": {
59+
"type": "string"
60+
}
61+
},
62+
"required": [
63+
"node_id",
64+
"is_minimized"
65+
],
66+
"type": "object"
67+
}
4868
}

‎pkg/github/__toolsnaps__/unhide_issue_comment.snap‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,25 @@
3030
],
3131
"type": "object"
3232
},
33-
"name": "unhide_issue_comment"
33+
"name": "unhide_issue_comment",
34+
"outputSchema": {
35+
"additionalProperties": false,
36+
"properties": {
37+
"is_minimized": {
38+
"type": "boolean"
39+
},
40+
"minimized_reason": {
41+
"description": "GitHub's lowercase, hyphenated reason (for example off-topic); omitted when unhidden.",
42+
"type": "string"
43+
},
44+
"node_id": {
45+
"type": "string"
46+
}
47+
},
48+
"required": [
49+
"node_id",
50+
"is_minimized"
51+
],
52+
"type": "object"
53+
}
3454
}

‎pkg/github/__toolsnaps__/unhide_pull_request_review.snap‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,25 @@
3636
],
3737
"type": "object"
3838
},
39-
"name": "unhide_pull_request_review"
39+
"name": "unhide_pull_request_review",
40+
"outputSchema": {
41+
"additionalProperties": false,
42+
"properties": {
43+
"is_minimized": {
44+
"type": "boolean"
45+
},
46+
"minimized_reason": {
47+
"description": "GitHub's lowercase, hyphenated reason (for example off-topic); omitted when unhidden.",
48+
"type": "string"
49+
},
50+
"node_id": {
51+
"type": "string"
52+
}
53+
},
54+
"required": [
55+
"node_id",
56+
"is_minimized"
57+
],
58+
"type": "object"
59+
}
4060
}

‎pkg/github/__toolsnaps__/unhide_pull_request_review_comment.snap‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,25 @@
3030
],
3131
"type": "object"
3232
},
33-
"name": "unhide_pull_request_review_comment"
33+
"name": "unhide_pull_request_review_comment",
34+
"outputSchema": {
35+
"additionalProperties": false,
36+
"properties": {
37+
"is_minimized": {
38+
"type": "boolean"
39+
},
40+
"minimized_reason": {
41+
"description": "GitHub's lowercase, hyphenated reason (for example off-topic); omitted when unhidden.",
42+
"type": "string"
43+
},
44+
"node_id": {
45+
"type": "string"
46+
}
47+
},
48+
"required": [
49+
"node_id",
50+
"is_minimized"
51+
],
52+
"type": "object"
53+
}
3454
}

0 commit comments

Comments
 (0)