Skip to content

Commit d0f0334

Browse files
committed
Merge branch 'mcp-ui-apps-3' of https://github.com/github/github-mcp-server into mcp-ui-apps-3
2 parents 2b8f062 + 6070471 commit d0f0334

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/docker-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
# https://github.com/docker/login-action
6161
- name: Log into registry ${{ env.REGISTRY }}
6262
if: github.event_name != 'pull_request'
63-
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
63+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
6464
with:
6565
registry: ${{ env.REGISTRY }}
6666
username: ${{ github.actor }}

internal/ghmcp/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ func newGHECHost(hostname string) (apiHost, error) {
503503
return apiHost{}, fmt.Errorf("failed to parse GHEC GraphQL URL: %w", err)
504504
}
505505

506-
uploadURL, err := url.Parse(fmt.Sprintf("https://uploads.%s", u.Hostname()))
506+
uploadURL, err := url.Parse(fmt.Sprintf("https://uploads.%s/", u.Hostname()))
507507
if err != nil {
508508
return apiHost{}, fmt.Errorf("failed to parse GHEC Upload URL: %w", err)
509509
}

pkg/github/pullrequests.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,7 +1516,7 @@ func SubmitPendingPullRequestReview(ctx context.Context, client *githubv4.Client
15161516
"prNum": githubv4.Int(params.PullNumber),
15171517
}
15181518

1519-
if err := client.Query(context.Background(), &getLatestReviewForViewerQuery, vars); err != nil {
1519+
if err := client.Query(ctx, &getLatestReviewForViewerQuery, vars); err != nil {
15201520
return ghErrors.NewGitHubGraphQLErrorResponse(ctx,
15211521
"failed to get latest review for current user",
15221522
err,
@@ -1601,7 +1601,7 @@ func DeletePendingPullRequestReview(ctx context.Context, client *githubv4.Client
16011601
"prNum": githubv4.Int(params.PullNumber),
16021602
}
16031603

1604-
if err := client.Query(context.Background(), &getLatestReviewForViewerQuery, vars); err != nil {
1604+
if err := client.Query(ctx, &getLatestReviewForViewerQuery, vars); err != nil {
16051605
return ghErrors.NewGitHubGraphQLErrorResponse(ctx,
16061606
"failed to get latest review for current user",
16071607
err,
@@ -1775,7 +1775,7 @@ func AddCommentToPendingReview(t translations.TranslationHelperFunc) inventory.S
17751775
"prNum": githubv4.Int(params.PullNumber),
17761776
}
17771777

1778-
if err := client.Query(context.Background(), &getLatestReviewForViewerQuery, vars); err != nil {
1778+
if err := client.Query(ctx, &getLatestReviewForViewerQuery, vars); err != nil {
17791779
return ghErrors.NewGitHubGraphQLErrorResponse(ctx,
17801780
"failed to get latest review for current user",
17811781
err,

0 commit comments

Comments
 (0)