Skip to content

Commit 2fd4a39

Browse files
updates
1 parent 1e567ac commit 2fd4a39

6 files changed

Lines changed: 12 additions & 13 deletions

File tree

‎pkg/github/__toolsnaps__/update_issue_status.snap‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"annotations": {
3-
"destructiveHint": true,
3+
"destructiveHint": false,
44
"idempotentHint": false,
55
"openWorldHint": true,
66
"readOnlyHint": false,

‎pkg/github/issue_status.go‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ func UpdateIssueStatus(t translations.TranslationHelperFunc) inventory.ServerToo
199199
Annotations: &mcp.ToolAnnotations{
200200
Title: t("TOOL_UPDATE_ISSUE_STATUS_USER_TITLE", "Update Issue Status"),
201201
ReadOnlyHint: false,
202-
DestructiveHint: new(true), OpenWorldHint: new(true),
202+
DestructiveHint: new(false),
203+
OpenWorldHint: new(true),
203204
},
204205
},
205206
scopes.RequireAll(scopes.Repo),
@@ -285,7 +286,7 @@ func resolveIssueStatusID(ctx context.Context, client *githubv4.Client, owner, r
285286
ID githubv4.ID
286287
Name string
287288
}
288-
} `graphql:"planningStatuses(first: 7)"`
289+
} `graphql:"planningStatuses(first: 10)"`
289290
} `graphql:"repository(owner: $owner, name: $repo)"`
290291
}
291292
if err := client.Query(ctx, &query, map[string]any{"owner": githubv4.String(owner), "repo": githubv4.String(repo)}); err != nil {

‎pkg/github/issues.go‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,8 +1994,7 @@ func SearchIssues(t translations.TranslationHelperFunc, opts ...ToolOption) inve
19941994
toolDescription = searchIssuesLexicalDescription
19951995
queryDescription = searchIssuesLexicalQueryDescription
19961996
}
1997-
toolDescription = t("TOOL_SEARCH_ISSUES_DESCRIPTION", toolDescription)
1998-
toolDescription += " " + t("TOOL_SEARCH_ISSUES_STATUS_DESCRIPTION", searchIssuesStatusDescription())
1997+
toolDescription += " " + searchIssuesStatusDescription()
19991998

20001999
schema := &jsonschema.Schema{
20012000
Type: "object",
@@ -2047,7 +2046,7 @@ func SearchIssues(t translations.TranslationHelperFunc, opts ...ToolOption) inve
20472046
ToolsetMetadataIssues,
20482047
mcp.Tool{
20492048
Name: "search_issues",
2050-
Description: toolDescription,
2049+
Description: t("TOOL_SEARCH_ISSUES_DESCRIPTION", toolDescription),
20512050
Annotations: &mcp.ToolAnnotations{
20522051
Title: t("TOOL_SEARCH_ISSUES_USER_TITLE", "Search issues"),
20532052
ReadOnlyHint: true,

‎pkg/github/typed_consolidated_issue_outputs_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ func TestIssuePlanningStatusCreation(t *testing.T) {
253253
gql = githubv4.NewClient(githubv4mock.NewMockedHTTPClient(
254254
createIssueParentMatcher(3, "owner", "repo", "R_repo", "I_parent"),
255255
githubv4mock.NewQueryMatcher(
256-
"query($owner:String!$repo:String!){repository(owner: $owner, name: $repo){planningStatuses(first: 7){nodes{id,name}}}}",
256+
"query($owner:String!$repo:String!){repository(owner: $owner, name: $repo){planningStatuses(first: 10){nodes{id,name}}}}",
257257
map[string]any{"owner": "owner", "repo": "repo"},
258258
githubv4mock.DataResponse(map[string]any{"repository": map[string]any{"planningStatuses": map[string]any{"nodes": []any{map[string]any{"id": "IS_review", "name": "In review"}}}}}),
259259
),

‎pkg/skills/catalog/skills/issue-authoring/SKILL.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ do it.
6262
- `labels` — must already exist on the repository. This tool applies labels; it does not
6363
create them.
6464
- `assignees` — assigning someone is a claim on their time. Only from an instruction.
65-
- `status` — when advertised by `issue_write` or `create_issue`, creation accepts
66-
Backlog, Todo, In progress or In review. The parent and initial status can be set
67-
atomically. Closed statuses cannot be assigned at creation.
65+
- `status` — on `issue_write` or `create_issue`, creation accepts Backlog, Todo,
66+
In progress or In review. The parent and initial status can be set atomically.
67+
Closed statuses cannot be assigned at creation.
6868
- `sub_issue_id` on `sub_issue_write` — the internal identifier, which is not the issue
6969
number. Read it from the issue rather than assuming the number will work.
7070

‎pkg/skills/catalog/skills/issue-backlog-triage/SKILL.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ important one in the backlog; judge on content, not on dates alone.
6262
- `state_reason` — `completed`, `not_planned`, or `duplicate`. Closing without one
6363
loses the only durable signal about why.
6464
- `duplicate_of` — required when `state_reason` is `duplicate`.
65-
- Planning statuses are available only when advertised. `issue_read` with
66-
`method: get` returns `status` as an ID, name and category, or null.
67-
Filter `search_issues` with `status:"In progress"` or another fixed status.
65+
- `issue_read` with `method: get` returns `status` as an ID, name and category,
66+
or null. Filter `search_issues` with `status:"In progress"` or another fixed status.
6867
Use `update_issue_status` for Backlog, Todo, In progress, In review, Done,
6968
Not planned or Duplicate. Done, Not planned and Duplicate close the issue;
7069
the others keep it open or reopen it. Duplicate requires `duplicate_of`,

0 commit comments

Comments
 (0)