Skip to content

Commit c924b69

Browse files
authored
Merge branch 'main' into add-reply-to-pr-comment
2 parents f590abc + c1f8d4c commit c924b69

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
@@ -497,7 +497,7 @@ func newGHECHost(hostname string) (apiHost, error) {
497497
return apiHost{}, fmt.Errorf("failed to parse GHEC GraphQL URL: %w", err)
498498
}
499499

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

pkg/github/pullrequests.go

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

1596-
if err := client.Query(context.Background(), &getLatestReviewForViewerQuery, vars); err != nil {
1596+
if err := client.Query(ctx, &getLatestReviewForViewerQuery, vars); err != nil {
15971597
return ghErrors.NewGitHubGraphQLErrorResponse(ctx,
15981598
"failed to get latest review for current user",
15991599
err,
@@ -1678,7 +1678,7 @@ func DeletePendingPullRequestReview(ctx context.Context, client *githubv4.Client
16781678
"prNum": githubv4.Int(params.PullNumber),
16791679
}
16801680

1681-
if err := client.Query(context.Background(), &getLatestReviewForViewerQuery, vars); err != nil {
1681+
if err := client.Query(ctx, &getLatestReviewForViewerQuery, vars); err != nil {
16821682
return ghErrors.NewGitHubGraphQLErrorResponse(ctx,
16831683
"failed to get latest review for current user",
16841684
err,
@@ -1852,7 +1852,7 @@ func AddCommentToPendingReview(t translations.TranslationHelperFunc) inventory.S
18521852
"prNum": githubv4.Int(params.PullNumber),
18531853
}
18541854

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

0 commit comments

Comments
 (0)