You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Model node, numeric, and issue references as closed schema variants while retaining runtime validation.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7ae767ff-c1d0-46a9-b126-2e91403993a0
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1119,7 +1119,7 @@ The following sets of tools are available:
1119
1119
-`item_owner`: The owner (user or organization) of the repository containing the issue or pull request. Required for 'add_project_item' method. Also accepted by 'update_project_item' when resolving the item by issue number. (string, optional)
1120
1120
-`item_repo`: The name of the repository containing the issue or pull request. Required for 'add_project_item' method. Also accepted by 'update_project_item' when resolving the item by issue number. (string, optional)
1121
1121
-`item_type`: The item's type, either issue or pull_request. Required for 'add_project_item' method. (string, optional)
1122
-
-`items`: The set of items to update. Required for 'update_project_items'. Each entry references an existing item by exactly one of: 'node_id' (the item's GraphQL node ID, e.g. as returned by 'list_project_items' or 'add_project_item'), 'item_id' (the numeric project item ID), or (item_owner + item_repo + issue_number). Each entry may optionally include its own 'updated_field'; if omitted, the top-level 'updated_field' is applied. Limit: 100 items per call. (object[], optional)
1122
+
-`items`: The items to update. Required for 'update_project_items'. Each entry must match exactly one reference variant: 'node_id', numeric 'item_id', or 'item_owner' + 'item_repo' + 'issue_number'. Each entry may include 'updated_field'; otherwise the top-level 'updated_field' applies. Limit: 100 items per call. (object[], optional)
1123
1123
-`iteration_duration`: Duration in days for iterations of the field (e.g. 7 for weekly, 14 for bi-weekly). Required for 'create_iteration_field' method. (number, optional)
1124
1124
-`iterations`: Custom iterations for 'create_iteration_field' method. Only set this when you need iterations with varying durations, breaks between them, or specific titles. Otherwise omit it: GitHub auto-creates three iterations of 'iteration_duration' days starting on 'start_date', which is the right choice for most cases. (object[], optional)
1125
1125
-`method`: The method to execute (string, required)
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/projects_write.snap
+60-24Lines changed: 60 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -41,35 +41,71 @@
41
41
"type": "string"
42
42
},
43
43
"items": {
44
-
"description": "The set of items to update. Required for 'update_project_items'. Each entry references an existing item by exactly one of: 'node_id' (the item's GraphQL node ID, e.g. as returned by 'list_project_items' or 'add_project_item'), 'item_id' (the numeric project item ID), or (item_owner + item_repo + issue_number). Each entry may optionally include its own 'updated_field'; if omitted, the top-level 'updated_field' is applied. Limit: 100 items per call.",
44
+
"description": "The items to update. Required for 'update_project_items'. Each entry must match exactly one reference variant: 'node_id', numeric 'item_id', or 'item_owner' + 'item_repo' + 'issue_number'. Each entry may include 'updated_field'; otherwise the top-level 'updated_field' applies. Limit: 100 items per call.",
45
45
"items": {
46
-
"additionalProperties": false,
47
-
"properties": {
48
-
"issue_number": {
49
-
"description": "Issue number used to resolve the project item together with item_owner and item_repo.",
50
-
"type": "integer"
51
-
},
52
-
"item_id": {
53
-
"description": "The project item ID. Provide exactly one of node_id, item_id, or (item_owner + item_repo + issue_number).",
54
-
"type": "integer"
55
-
},
56
-
"item_owner": {
57
-
"description": "Owner of the repository containing the issue. Combine with item_repo and issue_number to resolve the item.",
58
-
"type": "string"
59
-
},
60
-
"item_repo": {
61
-
"description": "Repository containing the issue. Combine with item_owner and issue_number to resolve the item.",
62
-
"type": "string"
46
+
"oneOf": [
47
+
{
48
+
"additionalProperties": false,
49
+
"properties": {
50
+
"node_id": {
51
+
"description": "The project item's GraphQL node ID, as returned by 'list_project_items' or 'add_project_item'.",
52
+
"type": "string"
53
+
},
54
+
"updated_field": {
55
+
"description": "Per-item field update. Overrides the top-level 'updated_field'. Same shape as the top-level 'updated_field'.",
56
+
"type": "object"
57
+
}
58
+
},
59
+
"required": [
60
+
"node_id"
61
+
],
62
+
"type": "object"
63
63
},
64
-
"node_id": {
65
-
"description": "The project item's GraphQL node ID. Provide exactly one of node_id, item_id, or (item_owner + item_repo + issue_number).",
66
-
"type": "string"
64
+
{
65
+
"additionalProperties": false,
66
+
"properties": {
67
+
"item_id": {
68
+
"description": "The numeric project item ID.",
69
+
"type": "integer"
70
+
},
71
+
"updated_field": {
72
+
"description": "Per-item field update. Overrides the top-level 'updated_field'. Same shape as the top-level 'updated_field'.",
73
+
"type": "object"
74
+
}
75
+
},
76
+
"required": [
77
+
"item_id"
78
+
],
79
+
"type": "object"
67
80
},
68
-
"updated_field": {
69
-
"description": "Per-item field update. Overrides the top-level 'updated_field'. Same shape as the top-level 'updated_field'.",
81
+
{
82
+
"additionalProperties": false,
83
+
"properties": {
84
+
"issue_number": {
85
+
"description": "Issue number used to resolve the project item.",
86
+
"type": "integer"
87
+
},
88
+
"item_owner": {
89
+
"description": "Owner of the repository containing the issue.",
90
+
"type": "string"
91
+
},
92
+
"item_repo": {
93
+
"description": "Repository containing the issue.",
94
+
"type": "string"
95
+
},
96
+
"updated_field": {
97
+
"description": "Per-item field update. Overrides the top-level 'updated_field'. Same shape as the top-level 'updated_field'.",
Description: "The set of items to update. Required for 'update_project_items'. Each entry references an existing item by exactly one of: 'node_id' (the item's GraphQL node ID, e.g. as returned by 'list_project_items' or 'add_project_item'), 'item_id' (the numeric project item ID), or (item_owner + item_repo + issue_number). Each entry may optionally include its own 'updated_field'; if omitted, the top-level 'updated_field' is applied. Limit: "+strconv.Itoa(MaxProjectItemsPerBatch) +" items per call.",
Description: "The project item's GraphQL node ID. Provide exactly one of node_id, item_id, or (item_owner + item_repo + issue_number).",
582
-
},
583
-
"item_id": {
584
-
Type: "integer",
585
-
Description: "The project item ID. Provide exactly one of node_id, item_id, or (item_owner + item_repo + issue_number).",
586
-
},
587
-
"item_owner": {
588
-
Type: "string",
589
-
Description: "Owner of the repository containing the issue. Combine with item_repo and issue_number to resolve the item.",
590
-
},
591
-
"item_repo": {
592
-
Type: "string",
593
-
Description: "Repository containing the issue. Combine with item_owner and issue_number to resolve the item.",
594
-
},
595
-
"issue_number": {
596
-
Type: "integer",
597
-
Description: "Issue number used to resolve the project item together with item_owner and item_repo.",
598
-
},
599
-
"updated_field": {
600
-
Type: "object",
601
-
Description: "Per-item field update. Overrides the top-level 'updated_field'. Same shape as the top-level 'updated_field'.",
602
-
},
603
-
},
604
-
},
619
+
Description: "The items to update. Required for 'update_project_items'. Each entry must match exactly one reference variant: 'node_id', numeric 'item_id', or 'item_owner' + 'item_repo' + 'issue_number'. Each entry may include 'updated_field'; otherwise the top-level 'updated_field' applies. Limit: "+strconv.Itoa(maxProjectItemsPerBatch) +" items per call.",
0 commit comments