Skip to content

Commit b0d7089

Browse files
fix(pull-requests): align modern text with typed outputs
Use curated output DTOs for modern JSON text while preserving legacy serialization. Cover successful null responses, empty check runs, and Link-header page traversal. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent d62f05f commit b0d7089

20 files changed

Lines changed: 461 additions & 1887 deletions

‎pkg/github/__toolsnaps__/add_comment_to_pending_review.snap‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"additionalProperties": false,
7676
"properties": {
7777
"message": {
78+
"description": "Operation result message.",
7879
"type": "string"
7980
}
8081
},

‎pkg/github/__toolsnaps__/add_comment_to_pending_review_typed.snap‎

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

‎pkg/github/__toolsnaps__/add_reply_to_pull_request_comment.snap‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@
5656
{
5757
"additionalProperties": false,
5858
"properties": {
59-
"id": {
59+
"html_url": {
60+
"description": "Browser URL.",
6061
"type": "string"
6162
},
62-
"url": {
63+
"id": {
6364
"type": "string"
6465
}
6566
},
6667
"required": [
67-
"id",
68-
"url"
68+
"id"
6969
],
7070
"type": "object"
7171
},
@@ -75,32 +75,32 @@
7575
"comment": {
7676
"additionalProperties": false,
7777
"properties": {
78-
"id": {
78+
"html_url": {
79+
"description": "Browser URL.",
7980
"type": "string"
8081
},
81-
"url": {
82+
"id": {
8283
"type": "string"
8384
}
8485
},
8586
"required": [
86-
"id",
87-
"url"
87+
"id"
8888
],
8989
"type": "object"
9090
},
9191
"reaction": {
9292
"additionalProperties": false,
9393
"properties": {
94-
"id": {
94+
"html_url": {
95+
"description": "Browser URL.",
9596
"type": "string"
9697
},
97-
"url": {
98+
"id": {
9899
"type": "string"
99100
}
100101
},
101102
"required": [
102-
"id",
103-
"url"
103+
"id"
104104
],
105105
"type": "object"
106106
}

‎pkg/github/__toolsnaps__/add_reply_to_pull_request_comment_typed.snap‎

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

‎pkg/github/__toolsnaps__/create_pull_request.snap‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@
7171
{
7272
"additionalProperties": false,
7373
"properties": {
74-
"id": {
74+
"html_url": {
75+
"description": "Browser URL.",
7576
"type": "string"
7677
},
77-
"url": {
78+
"id": {
7879
"type": "string"
7980
}
8081
},
8182
"required": [
82-
"id",
83-
"url"
83+
"id"
8484
],
8585
"type": "object"
8686
},

0 commit comments

Comments
 (0)