Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add support for Git tag operations#345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
SamMorrowDrums merged 3 commits intogithub:mainfromeranco74:tags
Apr 30, 2025

Conversation

eranco74
Copy link
Contributor

@eranco74eranco74 commentedApr 24, 2025
edited
Loading

Add git tag functionality, including:
- List repository tags
- Get tag details
- Support for tag-based content access

This enables basic read-only tag management through the MCP server API.

Closes:#344
Screenshot From 2025-04-24 20-11-21
Screenshot From 2025-04-24 19-59-40

image

romfreiman and vs0uz4 reacted with hooray emojiwilliammartin reacted with eyes emoji
@eranco74
Copy link
ContributorAuthor

@williammartin@SamMorrowDrums PTAL

SamMorrowDrums reacted with heart emoji

Copy link
Collaborator

@williammartinwilliammartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

New e2e test passes.

➜  github-mcp-server git:(tags) GITHUB_MCP_SERVER_E2E_TOKEN=$(gh auth token) go test -v -count=1 --run "TestTags" --tags e2e ./e2e=== RUN   TestTags    e2e_test.go:45: Building Docker image for e2e tests...    e2e_test.go:118: Starting Stdio MCP client...    e2e_test.go:219: Getting current user...    e2e_test.go:248: Creating repository williammartin/github-mcp-server-e2e-TestTags-1746011927745...    e2e_test.go:265: Creating tag williammartin/github-mcp-server-e2e-TestTags-1746011927745:v0.0.1...    e2e_test.go:295: Listing tags for williammartin/github-mcp-server-e2e-TestTags-1746011927745...    e2e_test.go:328: Getting tag williammartin/github-mcp-server-e2e-TestTags-1746011927745:v0.0.1...    e2e_test.go:257: Deleting repository williammartin/github-mcp-server-e2e-TestTags-1746011927745...--- PASS: TestTags (56.03s)PASSok      github.com/github/github-mcp-server/e2e 56.424s

eranco74 reacted with thumbs up emoji
juruen
juruen previously approved these changesApr 30, 2025
Copy link
Collaborator

@juruenjuruen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM! 🚀

I'm pretty happy to see the progress in making our tests more thorough!

SamMorrowDrums reacted with rocket emoji
SamMorrowDrums
SamMorrowDrums previously approved these changesApr 30, 2025
Copy link
Collaborator

@SamMorrowDrumsSamMorrowDrums left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Very nice work. A couple of notes on being explicit that this exposes the concept of git tags, but I am certain it would have worked well either way. I just want to make sure for operations using the returned tags the fact they are git tags is always obvious to the model.

@@ -10,6 +10,15 @@ import (
"github.com/stretchr/testify/require"
)

// expectPath is a helper function to create a partial mock that expects a
// request with the given path, with the ability to chain a response handler.
func expectPath(t *testing.T, expectedPath string) *partialMock {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I like expect path. I think it will catch both errors matching args into API requests and protect from regressions also.

GitHub API is very stable and I don't expect much maintenance will be required.

eranco74and others added3 commitsApril 30, 2025 19:18
Add git tag functionality including:- List repository tags- Get tag details- Support for tag-based content accessThis enables basic read-only tag management through the MCP server API.
Copy link
Collaborator

@SamMorrowDrumsSamMorrowDrums left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

🚀

@SamMorrowDrumsSamMorrowDrums merged commit92d95e4 intogithub:mainApr 30, 2025
9 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@williammartinwilliammartinwilliammartin left review comments

@SamMorrowDrumsSamMorrowDrumsSamMorrowDrums approved these changes

@juruenjuruenjuruen left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add support for tags operations
4 participants
@eranco74@juruen@williammartin@SamMorrowDrums

[8]ページ先頭

©2009-2025 Movatter.jp