Skip to content

Commit d54df05

Browse files
committed
Support batched Issue Field updates
Resolve each Project item to its underlying Issue and alias setIssueFieldValue so update_project_items supports attached Issue Fields with partial outcomes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 1d574277-3735-4356-a753-8354aa6b537c
1 parent 944fdb4 commit d54df05

10 files changed

Lines changed: 615 additions & 93 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ The following sets of tools are available:
11331133
- `status`: The status of the project. Used for 'create_project_status_update' method. (string, optional)
11341134
- `target_date`: The target date of the status update in YYYY-MM-DD format. Used for 'create_project_status_update' method. (string, optional)
11351135
- `title`: The project title. Required for 'create_project' method. (string, optional)
1136-
- `updated_field`: The field to update and its new value. Required for 'update_project_item' and 'update_project_items'. For 'update_project_items', one top-level field/value applies to every item. Set value to null to clear the field. (object, optional)
1136+
- `updated_field`: The Project or attached Issue Field to update and its new value. Required for 'update_project_item' and 'update_project_items'. For 'update_project_items', one top-level field/value applies to every item. Set value to null to clear the field. (object, optional)
11371137

11381138
</details>
11391139

pkg/github/__toolsnaps__/projects_write.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
"type": "string"
187187
},
188188
"updated_field": {
189-
"description": "The field to update and its new value. Required for 'update_project_item' and 'update_project_items'. For 'update_project_items', one top-level field/value applies to every item. Set value to null to clear the field.",
189+
"description": "The Project or attached Issue Field to update and its new value. Required for 'update_project_item' and 'update_project_items'. For 'update_project_items', one top-level field/value applies to every item. Set value to null to clear the field.",
190190
"oneOf": [
191191
{
192192
"additionalProperties": false,
@@ -209,7 +209,7 @@
209209
"additionalProperties": false,
210210
"properties": {
211211
"name": {
212-
"description": "The case-insensitive field name. Supports standard Project fields. Singular 'update_project_item' also supports attached Issue Fields; 'update_project_items' does not.",
212+
"description": "The case-insensitive Project or attached Issue Field name.",
213213
"type": "string"
214214
},
215215
"value": {

pkg/github/projects.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ func projectUpdatedFieldSchema() *jsonschema.Schema {
548548

549549
return &jsonschema.Schema{
550550
Type: "object",
551-
Description: "The field to update and its new value. Required for 'update_project_item' and 'update_project_items'. For 'update_project_items', one top-level field/value applies to every item. Set value to null to clear the field.",
551+
Description: "The Project or attached Issue Field to update and its new value. Required for 'update_project_item' and 'update_project_items'. For 'update_project_items', one top-level field/value applies to every item. Set value to null to clear the field.",
552552
OneOf: []*jsonschema.Schema{
553553
variant([]string{"id", "value"}, map[string]*jsonschema.Schema{
554554
"id": {
@@ -559,7 +559,7 @@ func projectUpdatedFieldSchema() *jsonschema.Schema {
559559
variant([]string{"name", "value"}, map[string]*jsonschema.Schema{
560560
"name": {
561561
Type: "string",
562-
Description: "The case-insensitive field name. Supports standard Project fields. Singular 'update_project_item' also supports attached Issue Fields; 'update_project_items' does not.",
562+
Description: "The case-insensitive Project or attached Issue Field name.",
563563
},
564564
}, "The new value, or null to clear the field. Use a string for TEXT, a finite number for NUMBER, a YYYY-MM-DD string for DATE, and an option name (case-insensitive) or option ID for SINGLE_SELECT."),
565565
},

0 commit comments

Comments
 (0)