Skip to content

Commit c60ff11

Browse files
authored
Merge branch 'main' into dependabot/docker/golang-1.25.1-alpine
2 parents 228f75c + 28ca9ad commit c60ff11

24 files changed

+1290
-128
lines changed

.github/workflows/close-inactive-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
issues: write
1515
pull-requests: write
1616
steps:
17-
- uses: actions/stale@v9
17+
- uses: actions/stale@v10
1818
with:
1919
days-before-issue-stale: ${{ env.PR_DAYS_BEFORE_STALE }}
2020
days-before-issue-close: ${{ env.PR_DAYS_BEFORE_CLOSE }}

.github/workflows/goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3838

3939
- name: Generate signed build provenance attestations for workflow artifacts
40-
uses: actions/attest-build-provenance@v2
40+
uses: actions/attest-build-provenance@v3
4141
with:
4242
subject-path: |
4343
dist/*.tar.gz

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ vendor
1414
bin/
1515

1616
# macOS
17-
.DS_Store
17+
.DS_Store
18+
19+
# binary
20+
github-mcp-server

README.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -591,12 +591,14 @@ The following sets of tools are available (all are on by default):
591591
- **update_issue** - Edit issue
592592
- `assignees`: New assignees (string[], optional)
593593
- `body`: New description (string, optional)
594+
- `duplicate_of`: Issue number that this issue is a duplicate of. Only used when state_reason is 'duplicate'. (number, optional)
594595
- `issue_number`: Issue number to update (number, required)
595596
- `labels`: New labels (string[], optional)
596597
- `milestone`: New milestone number (number, optional)
597598
- `owner`: Repository owner (string, required)
598599
- `repo`: Repository name (string, required)
599600
- `state`: New state (string, optional)
601+
- `state_reason`: Reason for the state change. Ignored unless state is changed. (string, optional)
600602
- `title`: New title (string, optional)
601603
- `type`: New issue type (string, optional)
602604

@@ -701,11 +703,6 @@ The following sets of tools are available (all are on by default):
701703
- `pullNumber`: Pull request number (number, required)
702704
- `repo`: Repository name (string, required)
703705

704-
- **get_pull_request_comments** - Get pull request comments
705-
- `owner`: Repository owner (string, required)
706-
- `pullNumber`: Pull request number (number, required)
707-
- `repo`: Repository name (string, required)
708-
709706
- **get_pull_request_diff** - Get pull request diff
710707
- `owner`: Repository owner (string, required)
711708
- `pullNumber`: Pull request number (number, required)
@@ -718,6 +715,11 @@ The following sets of tools are available (all are on by default):
718715
- `pullNumber`: Pull request number (number, required)
719716
- `repo`: Repository name (string, required)
720717

718+
- **get_pull_request_review_comments** - Get pull request review comments
719+
- `owner`: Repository owner (string, required)
720+
- `pullNumber`: Pull request number (number, required)
721+
- `repo`: Repository name (string, required)
722+
721723
- **get_pull_request_reviews** - Get pull request reviews
722724
- `owner`: Repository owner (string, required)
723725
- `pullNumber`: Pull request number (number, required)
@@ -875,6 +877,13 @@ The following sets of tools are available (all are on by default):
875877
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
876878
- `repo`: Repository name (string, required)
877879

880+
- **list_starred_repositories** - List starred repositories
881+
- `direction`: The direction to sort the results by. (string, optional)
882+
- `page`: Page number for pagination (min 1) (number, optional)
883+
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
884+
- `sort`: How to sort the results. Can be either 'created' (when the repository was starred) or 'updated' (when the repository was last pushed to). (string, optional)
885+
- `username`: Username to list starred repositories for. Defaults to the authenticated user. (string, optional)
886+
878887
- **list_tags** - List tags
879888
- `owner`: Repository owner (string, required)
880889
- `page`: Page number for pagination (min 1) (number, optional)
@@ -901,6 +910,14 @@ The following sets of tools are available (all are on by default):
901910
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
902911
- `query`: Repository search query. Examples: 'machine learning in:name stars:>1000 language:python', 'topic:react', 'user:facebook'. Supports advanced search syntax for precise filtering. (string, required)
903912

913+
- **star_repository** - Star repository
914+
- `owner`: Repository owner (string, required)
915+
- `repo`: Repository name (string, required)
916+
917+
- **unstar_repository** - Unstar repository
918+
- `owner`: Repository owner (string, required)
919+
- `repo`: Repository name (string, required)
920+
904921
</details>
905922

906923
<details>

github-mcp-server

-17.5 MB
Binary file not shown.

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/josephburnett/jd v1.9.2
88
github.com/mark3labs/mcp-go v0.36.0
99
github.com/migueleliasweb/go-github-mock v1.3.0
10-
github.com/spf13/cobra v1.9.1
10+
github.com/spf13/cobra v1.10.1
1111
github.com/spf13/viper v1.20.1
1212
github.com/stretchr/testify v1.11.1
1313
)
@@ -44,7 +44,7 @@ require (
4444
github.com/sourcegraph/conc v0.3.0 // indirect
4545
github.com/spf13/afero v1.14.0 // indirect
4646
github.com/spf13/cast v1.7.1 // indirect
47-
github.com/spf13/pflag v1.0.6
47+
github.com/spf13/pflag v1.0.9
4848
github.com/subosito/gotenv v1.6.0 // indirect
4949
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
5050
go.uber.org/multierr v1.11.0 // indirect

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ github.com/spf13/afero v1.14.0 h1:9tH6MapGnn/j0eb0yIXiLjERO8RB6xIVZRDCX7PtqWA=
7878
github.com/spf13/afero v1.14.0/go.mod h1:acJQ8t0ohCGuMN3O+Pv0V0hgMxNYDlvdk+VTfyZmbYo=
7979
github.com/spf13/cast v1.7.1 h1:cuNEagBQEHWN1FnbGEjCXL2szYEXqfJPbP2HNUaca9Y=
8080
github.com/spf13/cast v1.7.1/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo=
81-
github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo=
82-
github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0=
83-
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
84-
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
81+
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
82+
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
83+
github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY=
84+
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
8585
github.com/spf13/viper v1.20.1 h1:ZMi+z/lvLyPSCoNtFCpqjy0S4kPbirhpTMwl8BkW9X4=
8686
github.com/spf13/viper v1.20.1/go.mod h1:P9Mdzt1zoHIG8m2eZQinpiBjo6kCmZSKBClNNqjJvu4=
8787
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

pkg/github/__toolsnaps__/get_pull_request_comments.snap renamed to pkg/github/__toolsnaps__/get_pull_request_review_comments.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"annotations": {
3-
"title": "Get pull request comments",
3+
"title": "Get pull request review comments",
44
"readOnlyHint": true
55
},
6-
"description": "Get comments for a specific pull request.",
6+
"description": "Get pull request review comments. They are comments made on a portion of the unified diff during a pull request review. These are different from commit comments and issue comments in a pull request.",
77
"inputSchema": {
88
"properties": {
99
"owner": {
@@ -26,5 +26,5 @@
2626
],
2727
"type": "object"
2828
},
29-
"name": "get_pull_request_comments"
29+
"name": "get_pull_request_review_comments"
3030
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"annotations": {
3+
"title": "List starred repositories",
4+
"readOnlyHint": true
5+
},
6+
"description": "List starred repositories",
7+
"inputSchema": {
8+
"properties": {
9+
"direction": {
10+
"description": "The direction to sort the results by.",
11+
"enum": [
12+
"asc",
13+
"desc"
14+
],
15+
"type": "string"
16+
},
17+
"page": {
18+
"description": "Page number for pagination (min 1)",
19+
"minimum": 1,
20+
"type": "number"
21+
},
22+
"perPage": {
23+
"description": "Results per page for pagination (min 1, max 100)",
24+
"maximum": 100,
25+
"minimum": 1,
26+
"type": "number"
27+
},
28+
"sort": {
29+
"description": "How to sort the results. Can be either 'created' (when the repository was starred) or 'updated' (when the repository was last pushed to).",
30+
"enum": [
31+
"created",
32+
"updated"
33+
],
34+
"type": "string"
35+
},
36+
"username": {
37+
"description": "Username to list starred repositories for. Defaults to the authenticated user.",
38+
"type": "string"
39+
}
40+
},
41+
"type": "object"
42+
},
43+
"name": "list_starred_repositories"
44+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"annotations": {
3+
"title": "Star repository",
4+
"readOnlyHint": false
5+
},
6+
"description": "Star a GitHub repository",
7+
"inputSchema": {
8+
"properties": {
9+
"owner": {
10+
"description": "Repository owner",
11+
"type": "string"
12+
},
13+
"repo": {
14+
"description": "Repository name",
15+
"type": "string"
16+
}
17+
},
18+
"required": [
19+
"owner",
20+
"repo"
21+
],
22+
"type": "object"
23+
},
24+
"name": "star_repository"
25+
}

0 commit comments

Comments
 (0)