Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit c8ace03

Browse files
Merge remote-tracking branch 'origin/master' into feature/graphql-caching
2 parents 415e7dd + 1cf7713 commit c8ace03

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/GitHub.InlineReviews/Services/PullRequestSessionService.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ public async Task<string> GetGraphQLPullRequestId(
716716
string repositoryOwner,
717717
int number)
718718
{
719-
var address = HostAddress.Create(localRepository.CloneUrl.Host);
719+
var address = HostAddress.Create(localRepository.CloneUrl);
720720
var graphql = await graphqlFactory.CreateConnection(address);
721721

722722
var query = new Query()
@@ -775,7 +775,7 @@ public async Task<PullRequestDetailModel> CreatePendingReview(
775775
LocalRepositoryModel localRepository,
776776
string pullRequestId)
777777
{
778-
var address = HostAddress.Create(localRepository.CloneUrl.Host);
778+
var address = HostAddress.Create(localRepository.CloneUrl);
779779
var graphql = await graphqlFactory.CreateConnection(address);
780780
var (_, owner, number) = await CreatePendingReviewCore(localRepository, pullRequestId);
781781
var detail = await ReadPullRequestDetail(address, owner, localRepository.Name, number, true);
@@ -790,7 +790,7 @@ public async Task<PullRequestDetailModel> CancelPendingReview(
790790
LocalRepositoryModel localRepository,
791791
string reviewId)
792792
{
793-
var address = HostAddress.Create(localRepository.CloneUrl.Host);
793+
var address = HostAddress.Create(localRepository.CloneUrl);
794794
var graphql = await graphqlFactory.CreateConnection(address);
795795

796796
var delete = new DeletePullRequestReviewInput
@@ -818,7 +818,7 @@ public async Task<PullRequestDetailModel> PostReview(
818818
string body,
819819
PullRequestReviewEvent e)
820820
{
821-
var address = HostAddress.Create(localRepository.CloneUrl.Host);
821+
var address = HostAddress.Create(localRepository.CloneUrl);
822822
var graphql = await graphqlFactory.CreateConnection(address);
823823

824824
var addReview = new AddPullRequestReviewInput
@@ -848,7 +848,7 @@ public async Task<PullRequestDetailModel> SubmitPendingReview(
848848
string body,
849849
PullRequestReviewEvent e)
850850
{
851-
var address = HostAddress.Create(localRepository.CloneUrl.Host);
851+
var address = HostAddress.Create(localRepository.CloneUrl);
852852
var graphql = await graphqlFactory.CreateConnection(address);
853853

854854
var submit = new SubmitPullRequestReviewInput
@@ -880,7 +880,7 @@ public async Task<PullRequestDetailModel> PostPendingReviewComment(
880880
string path,
881881
int position)
882882
{
883-
var address = HostAddress.Create(localRepository.CloneUrl.Host);
883+
var address = HostAddress.Create(localRepository.CloneUrl);
884884
var graphql = await graphqlFactory.CreateConnection(address);
885885

886886
var comment = new AddPullRequestReviewCommentInput
@@ -912,7 +912,7 @@ public async Task<PullRequestDetailModel> PostPendingReviewCommentReply(
912912
string body,
913913
string inReplyTo)
914914
{
915-
var address = HostAddress.Create(localRepository.CloneUrl.Host);
915+
var address = HostAddress.Create(localRepository.CloneUrl);
916916
var graphql = await graphqlFactory.CreateConnection(address);
917917

918918
var comment = new AddPullRequestReviewCommentInput
@@ -944,7 +944,7 @@ public async Task<PullRequestDetailModel> PostStandaloneReviewComment(
944944
string path,
945945
int position)
946946
{
947-
var address = HostAddress.Create(localRepository.CloneUrl.Host);
947+
var address = HostAddress.Create(localRepository.CloneUrl);
948948
var graphql = await graphqlFactory.CreateConnection(address);
949949

950950
var addReview = new AddPullRequestReviewInput
@@ -995,7 +995,7 @@ public async Task<PullRequestDetailModel> DeleteComment(
995995
int pullRequestId,
996996
int commentDatabaseId)
997997
{
998-
var address = HostAddress.Create(localRepository.CloneUrl.Host);
998+
var address = HostAddress.Create(localRepository.CloneUrl);
999999
var apiClient = await apiClientFactory.Create(address);
10001000

10011001
await apiClient.DeletePullRequestReviewComment(
@@ -1013,7 +1013,7 @@ public async Task<PullRequestDetailModel> EditComment(LocalRepositoryModel local
10131013
string commentNodeId,
10141014
string body)
10151015
{
1016-
var address = HostAddress.Create(localRepository.CloneUrl.Host);
1016+
var address = HostAddress.Create(localRepository.CloneUrl);
10171017
var graphql = await graphqlFactory.CreateConnection(address);
10181018

10191019
var updatePullRequestReviewCommentInput = new UpdatePullRequestReviewCommentInput
@@ -1036,7 +1036,7 @@ public async Task<PullRequestDetailModel> EditComment(LocalRepositoryModel local
10361036

10371037
async Task<(string id, string owner, int number)> CreatePendingReviewCore(LocalRepositoryModel localRepository, string pullRequestId)
10381038
{
1039-
var address = HostAddress.Create(localRepository.CloneUrl.Host);
1039+
var address = HostAddress.Create(localRepository.CloneUrl);
10401040
var graphql = await graphqlFactory.CreateConnection(address);
10411041

10421042
var input = new AddPullRequestReviewInput

0 commit comments

Comments
 (0)