Skip to content

Commit 4ac0c89

Browse files
fix(annotations): add OpenWorldHint to default UGC issue/PR/discussion tools
Clients that require an explicit boolean (same class of gap as ReadOnlyHint) cannot treat omitted OpenWorldHint as the spec default of true. Granular issue/PR tools already declare OpenWorldHint: true; the always-on counterparts that return or publish issue, PR, review, and discussion user-generated content did not. Scope is limited to that default-on UGC surface and does not change search tools, matching the #1100 decision to postpone a broad OSS rollout. Co-authored-by: Tiago Vilas Boas <tcarvalhovb@gmail.com>
1 parent 7d13a7a commit 4ac0c89

16 files changed

Lines changed: 67 additions & 18 deletions

pkg/github/__toolsnaps__/add_comment_to_pending_review.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"annotations": {
33
"idempotentHint": false,
4+
"openWorldHint": true,
45
"readOnlyHint": false,
56
"title": "Add review comment to the requester's latest pending pull request review"
67
},

pkg/github/__toolsnaps__/add_issue_comment.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"annotations": {
33
"idempotentHint": false,
4+
"openWorldHint": true,
45
"readOnlyHint": false,
56
"title": "Add comment to issue or pull request"
67
},

pkg/github/__toolsnaps__/add_reply_to_pull_request_comment.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"annotations": {
33
"idempotentHint": false,
4+
"openWorldHint": true,
45
"readOnlyHint": false,
56
"title": "Add reply to pull request comment"
67
},

pkg/github/__toolsnaps__/discussion_comment_write.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"annotations": {
33
"destructiveHint": true,
44
"idempotentHint": false,
5+
"openWorldHint": true,
56
"readOnlyHint": false,
67
"title": "Manage discussion comments"
78
},

pkg/github/__toolsnaps__/get_discussion.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"annotations": {
33
"idempotentHint": false,
4+
"openWorldHint": true,
45
"readOnlyHint": true,
56
"title": "Get discussion"
67
},

pkg/github/__toolsnaps__/get_discussion_comments.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"annotations": {
33
"idempotentHint": false,
4+
"openWorldHint": true,
45
"readOnlyHint": true,
56
"title": "Get discussion comments"
67
},

pkg/github/__toolsnaps__/issue_read.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"annotations": {
33
"idempotentHint": false,
4+
"openWorldHint": true,
45
"readOnlyHint": true,
56
"title": "Get issue details"
67
},

pkg/github/__toolsnaps__/issue_write.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"annotations": {
1212
"idempotentHint": false,
13+
"openWorldHint": true,
1314
"readOnlyHint": false,
1415
"title": "Create or update issue/pull request"
1516
},

pkg/github/__toolsnaps__/pull_request_read.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"annotations": {
33
"idempotentHint": false,
4+
"openWorldHint": true,
45
"readOnlyHint": true,
56
"title": "Get details for a single pull request"
67
},

pkg/github/__toolsnaps__/pull_request_review_write.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"annotations": {
33
"idempotentHint": false,
4+
"openWorldHint": true,
45
"readOnlyHint": false,
56
"title": "Write operations (create, submit, delete) on pull request reviews"
67
},

0 commit comments

Comments
 (0)