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
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -855,6 +855,7 @@ The following sets of tools are available:
855
855
-`assignees`: Usernames to assign to this issue (string[], optional)
856
856
-`body`: Issue body content (string, optional)
857
857
-`duplicate_of`: Issue number that this issue is a duplicate of. Only used when state_reason is 'duplicate'. (number, optional)
858
+
-`issue_fields`: Issue field values to set. Each item requires field_name and either value or field_option_name. field_option_name is for single-select fields and is resolved to the corresponding option ID automatically. (object[], optional)
858
859
-`issue_number`: Issue number to update (number, optional)
859
860
-`labels`: Labels to apply to this issue (string[], optional)
860
861
-`method`: Write operation to perform on a single issue.
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/issue_write.snap
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -30,22 +30,23 @@
30
30
"type": "number"
31
31
},
32
32
"issue_fields": {
33
-
"description": "Custom issue field values to set. Each entry specifies a field by name and its value. For single-select fields, value must be the option name (e.g. \"P1\"). For date fields, value must be YYYY-MM-DD.",
33
+
"description": "Issue field values to set. Each item requires field_name and either value or field_option_name. field_option_name is for single-select fields and is resolved to the corresponding option ID automatically.",
34
34
"items": {
35
-
"additionalProperties": false,
36
35
"properties": {
37
36
"field_name": {
38
-
"description": "Name of the custom field (case-insensitive).",
37
+
"description": "Issue field name",
39
38
"type": "string"
40
39
},
41
-
"value": {
42
-
"description": "Value to set. For single-select, the option name. For dates, YYYY-MM-DD. For numbers, the numeric value as a string.",
40
+
"field_option_name": {
41
+
"description": "Single-selectoption name to resolve and set for the field",
43
42
"type": "string"
43
+
},
44
+
"value": {
45
+
"description": "Value for text/number/date/single-select fields. For single-select, you can use field_option_name instead."
returnutils.NewToolResultErrorFromErr(errorPrefix+": failed to get GitHub GraphQL client", err), nil
@@ -1657,21 +1808,23 @@ Options are:
1657
1808
},
1658
1809
"issue_fields": {
1659
1810
Type: "array",
1660
-
Description: "Custom issue field values to set. Each entry specifies a field by name and its value. For single-select fields, value must be the option name (e.g. \"P1\"). For date fields, value must be YYYY-MM-DD.",
1811
+
Description: "Issue field values to set. Each item requires field_name and either value or field_option_name. field_option_name is for single-select fields and is resolved to the corresponding option ID automatically.",
0 commit comments