Skip to content

Commit 699b97c

Browse files
committed
adding chores
1 parent 977c133 commit 699b97c

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,12 @@ The following sets of tools are available (all are on by default):
510510
- `owner`: Repository owner (string, required)
511511
- `repo`: Repository name (string, required)
512512

513+
- **add_issue_labels** - Add issue labels
514+
- `issue_number`: Issue number (number, required)
515+
- `labels`: Label names to add to the issue (string[], required)
516+
- `owner`: Repository owner (string, required)
517+
- `repo`: Repository name (string, required)
518+
513519
- **add_sub_issue** - Add sub-issue
514520
- `issue_number`: The number of the parent issue (number, required)
515521
- `owner`: Repository owner (string, required)
@@ -532,6 +538,18 @@ The following sets of tools are available (all are on by default):
532538
- `title`: Issue title (string, required)
533539
- `type`: Type of this issue (string, optional)
534540

541+
- **create_label** - Create label
542+
- `color`: Label color as a 6-character hex code without '#', e.g. 'f29513' (string, required)
543+
- `description`: Label description (string, optional)
544+
- `name`: Name of the label to create (string, required)
545+
- `owner`: Repository owner (string, required)
546+
- `repo`: Repository name (string, required)
547+
548+
- **delete_label** - Delete label
549+
- `name`: Name of the label to delete (string, required)
550+
- `owner`: Repository owner (string, required)
551+
- `repo`: Repository name (string, required)
552+
535553
- **get_issue** - Get issue details
536554
- `issue_number`: The number of the issue (number, required)
537555
- `owner`: The owner of the repository (string, required)
@@ -544,6 +562,16 @@ The following sets of tools are available (all are on by default):
544562
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
545563
- `repo`: Repository name (string, required)
546564

565+
- **get_labels** - Get/List labels
566+
- `name`: Name of the label to retrieve. If not provided, lists all labels in the repository. (string, optional)
567+
- `owner`: Repository owner (string, required)
568+
- `repo`: Repository name (string, required)
569+
570+
- **list_issue_labels** - List issue labels
571+
- `issue_number`: Issue number (number, required)
572+
- `owner`: Repository owner (string, required)
573+
- `repo`: Repository name (string, required)
574+
547575
- **list_issue_types** - List available issue types
548576
- `owner`: The organization owner of the repository (string, required)
549577

@@ -565,6 +593,12 @@ The following sets of tools are available (all are on by default):
565593
- `per_page`: Number of results per page (max 100, default: 30) (number, optional)
566594
- `repo`: Repository name (string, required)
567595

596+
- **remove_issue_labels** - Remove issue labels
597+
- `issue_number`: Issue number (number, required)
598+
- `labels`: Label names to remove from the issue (string[], required)
599+
- `owner`: Repository owner (string, required)
600+
- `repo`: Repository name (string, required)
601+
568602
- **remove_sub_issue** - Remove sub-issue
569603
- `issue_number`: The number of the parent issue (number, required)
570604
- `owner`: Repository owner (string, required)
@@ -602,6 +636,14 @@ The following sets of tools are available (all are on by default):
602636
- `title`: New title (string, optional)
603637
- `type`: New issue type (string, optional)
604638

639+
- **update_label** - Update label
640+
- `color`: New label color as a 6-character hex code without '#', e.g. 'f29513' (string, optional)
641+
- `description`: New label description (string, optional)
642+
- `name`: Name of the existing label to update (string, required)
643+
- `new_name`: New name for the label (string, optional)
644+
- `owner`: Repository owner (string, required)
645+
- `repo`: Repository name (string, required)
646+
605647
</details>
606648

607649
<details>

pkg/github/tools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
6161
toolsets.NewServerTool(GetIssueComments(getClient, t)),
6262
toolsets.NewServerTool(ListIssueTypes(getClient, t)),
6363
toolsets.NewServerTool(ListSubIssues(getClient, t)),
64-
toolsets.NewServerTool(GetLabel(getGQLClient, t)),
64+
toolsets.NewServerTool(GetLabels(getGQLClient, t)),
6565
toolsets.NewServerTool(ListIssueLabels(getClient, t)),
6666
).
6767
AddWriteTools(

0 commit comments

Comments
 (0)