Skip to content

Commit 28d0362

Browse files
refactor(issues): preserve compact typed output contracts
Cache DTO schema inference, retain byte-exact handler text, and cover protocol, pagination and schema contracts. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 10d7777 commit 28d0362

21 files changed

Lines changed: 2247 additions & 834 deletions

‎pkg/github/__toolsnaps__/add_issue_comment.snap‎

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,31 @@
6060
{
6161
"additionalProperties": false,
6262
"properties": {
63-
"id": {
63+
"html_url": {
64+
"description": "The web URL of the created issue comment.",
6465
"type": "string"
6566
},
66-
"url": {
67+
"id": {
68+
"description": "The ID of the created comment or reaction.",
6769
"type": "string"
6870
}
6971
},
7072
"required": [
7173
"id",
72-
"url"
74+
"html_url"
75+
],
76+
"type": "object"
77+
},
78+
{
79+
"additionalProperties": false,
80+
"properties": {
81+
"id": {
82+
"description": "The ID of the created reaction.",
83+
"type": "string"
84+
}
85+
},
86+
"required": [
87+
"id"
7388
],
7489
"type": "object"
7590
},
@@ -79,32 +94,31 @@
7994
"comment": {
8095
"additionalProperties": false,
8196
"properties": {
82-
"id": {
97+
"html_url": {
98+
"description": "The web URL of the created issue comment.",
8399
"type": "string"
84100
},
85-
"url": {
101+
"id": {
102+
"description": "The ID of the created comment or reaction.",
86103
"type": "string"
87104
}
88105
},
89106
"required": [
90107
"id",
91-
"url"
108+
"html_url"
92109
],
93110
"type": "object"
94111
},
95112
"reaction": {
96113
"additionalProperties": false,
97114
"properties": {
98115
"id": {
99-
"type": "string"
100-
},
101-
"url": {
116+
"description": "The ID of the created reaction.",
102117
"type": "string"
103118
}
104119
},
105120
"required": [
106-
"id",
107-
"url"
121+
"id"
108122
],
109123
"type": "object"
110124
}

‎pkg/github/__toolsnaps__/add_issue_comment_typed.snap‎

Lines changed: 0 additions & 138 deletions
This file was deleted.

‎pkg/github/__toolsnaps__/issue_dependency_read_ff_issue_dependencies.snap‎

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,75 @@
4747
],
4848
"type": "object"
4949
},
50-
"name": "issue_dependency_read"
50+
"name": "issue_dependency_read",
51+
"outputSchema": {
52+
"additionalProperties": false,
53+
"properties": {
54+
"issues": {
55+
"description": "Related issues in the requested dependency direction.",
56+
"items": {
57+
"additionalProperties": false,
58+
"properties": {
59+
"html_url": {
60+
"description": "The web URL of the related issue.",
61+
"type": "string"
62+
},
63+
"number": {
64+
"description": "The related issue number.",
65+
"type": "integer"
66+
},
67+
"repository": {
68+
"description": "The related repository in owner/name form.",
69+
"type": "string"
70+
},
71+
"state": {
72+
"description": "The related issue state.",
73+
"type": "string"
74+
},
75+
"title": {
76+
"description": "The sanitized title of the related issue.",
77+
"type": "string"
78+
}
79+
},
80+
"required": [
81+
"number",
82+
"title",
83+
"state",
84+
"html_url"
85+
],
86+
"type": "object"
87+
},
88+
"type": [
89+
"null",
90+
"array"
91+
]
92+
},
93+
"pageInfo": {
94+
"additionalProperties": false,
95+
"properties": {
96+
"hasNextPage": {
97+
"description": "Whether another page of related issues is available.",
98+
"type": "boolean"
99+
},
100+
"nextPage": {
101+
"description": "The next page number, or 0 when no next page exists.",
102+
"type": "integer"
103+
}
104+
},
105+
"required": [
106+
"hasNextPage",
107+
"nextPage"
108+
],
109+
"type": "object"
110+
}
111+
},
112+
"required": [
113+
"issues",
114+
"pageInfo"
115+
],
116+
"type": [
117+
"null",
118+
"object"
119+
]
120+
}
51121
}

0 commit comments

Comments
 (0)