Skip to content

Commit f966e30

Browse files
authored
Merge branch 'github:main' into main
2 parents 275d315 + 8343fa5 commit f966e30

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[fork]: https://github.com/github/github-mcp-server/fork
44
[pr]: https://github.com/github/github-mcp-server/compare
5-
[style]: https://github.com/github/github-mcp-server/blob/main/.golangci.yaml
5+
[style]: https://github.com/github/github-mcp-server/blob/main/.golangci.yml
66

77
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
88

pkg/github/repositories_test.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -517,11 +517,6 @@ func Test_GetCommit(t *testing.T) {
517517
},
518518
},
519519
}
520-
// This one currently isn't defined in the mock package we're using.
521-
var mockEndpointPattern = mock.EndpointPattern{
522-
Pattern: "/repos/{owner}/{repo}/commits/{sha}",
523-
Method: "GET",
524-
}
525520

526521
tests := []struct {
527522
name string
@@ -535,7 +530,7 @@ func Test_GetCommit(t *testing.T) {
535530
name: "successful commit fetch",
536531
mockedClient: mock.NewMockedHTTPClient(
537532
mock.WithRequestMatchHandler(
538-
mockEndpointPattern,
533+
mock.GetReposCommitsByOwnerByRepoByRef,
539534
mockResponse(t, http.StatusOK, mockCommit),
540535
),
541536
),
@@ -551,7 +546,7 @@ func Test_GetCommit(t *testing.T) {
551546
name: "commit fetch fails",
552547
mockedClient: mock.NewMockedHTTPClient(
553548
mock.WithRequestMatchHandler(
554-
mockEndpointPattern,
549+
mock.GetReposCommitsByOwnerByRepoByRef,
555550
http.HandlerFunc(func(w http.ResponseWriter, _ *http.Request) {
556551
w.WriteHeader(http.StatusNotFound)
557552
_, _ = w.Write([]byte(`{"message": "Not Found"}`))

0 commit comments

Comments
 (0)