Skip to content

Commit 6d8a9dd

Browse files
Move createIssue tool inside readOnly check
1 parent 954dac5 commit 6d8a9dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/github/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ func NewServer(client *github.Client, readOnly bool, t translations.TranslationH
3636
// Add GitHub tools - Issues
3737
s.AddTool(getIssue(client, t))
3838
s.AddTool(searchIssues(client, t))
39-
s.AddTool(createIssue(client, t))
4039
if !readOnly {
40+
s.AddTool(createIssue(client, t))
4141
s.AddTool(addIssueComment(client, t))
4242
}
4343

0 commit comments

Comments
 (0)