Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions src/GitHub.InlineReviews/Services/PullRequestSessionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ public async Task<string> GetGraphQLPullRequestId(
string repositoryOwner,
int number)
{
var address = HostAddress.Create(localRepository.CloneUrl.Host);
var address = HostAddress.Create(localRepository.CloneUrl);
var graphql = await graphqlFactory.CreateConnection(address);

var query = new Query()
Expand Down Expand Up @@ -775,7 +775,7 @@ public async Task<PullRequestDetailModel> CreatePendingReview(
LocalRepositoryModel localRepository,
string pullRequestId)
{
var address = HostAddress.Create(localRepository.CloneUrl.Host);
var address = HostAddress.Create(localRepository.CloneUrl);
var graphql = await graphqlFactory.CreateConnection(address);
var (_, owner, number) = await CreatePendingReviewCore(localRepository, pullRequestId);
var detail = await ReadPullRequestDetail(address, owner, localRepository.Name, number);
Expand All @@ -790,7 +790,7 @@ public async Task<PullRequestDetailModel> CancelPendingReview(
LocalRepositoryModel localRepository,
string reviewId)
{
var address = HostAddress.Create(localRepository.CloneUrl.Host);
var address = HostAddress.Create(localRepository.CloneUrl);
var graphql = await graphqlFactory.CreateConnection(address);

var delete = new DeletePullRequestReviewInput
Expand Down Expand Up @@ -818,7 +818,7 @@ public async Task<PullRequestDetailModel> PostReview(
string body,
PullRequestReviewEvent e)
{
var address = HostAddress.Create(localRepository.CloneUrl.Host);
var address = HostAddress.Create(localRepository.CloneUrl);
var graphql = await graphqlFactory.CreateConnection(address);

var addReview = new AddPullRequestReviewInput
Expand Down Expand Up @@ -848,7 +848,7 @@ public async Task<PullRequestDetailModel> SubmitPendingReview(
string body,
PullRequestReviewEvent e)
{
var address = HostAddress.Create(localRepository.CloneUrl.Host);
var address = HostAddress.Create(localRepository.CloneUrl);
var graphql = await graphqlFactory.CreateConnection(address);

var submit = new SubmitPullRequestReviewInput
Expand Down Expand Up @@ -880,7 +880,7 @@ public async Task<PullRequestDetailModel> PostPendingReviewComment(
string path,
int position)
{
var address = HostAddress.Create(localRepository.CloneUrl.Host);
var address = HostAddress.Create(localRepository.CloneUrl);
var graphql = await graphqlFactory.CreateConnection(address);

var comment = new AddPullRequestReviewCommentInput
Expand Down Expand Up @@ -912,7 +912,7 @@ public async Task<PullRequestDetailModel> PostPendingReviewCommentReply(
string body,
string inReplyTo)
{
var address = HostAddress.Create(localRepository.CloneUrl.Host);
var address = HostAddress.Create(localRepository.CloneUrl);
var graphql = await graphqlFactory.CreateConnection(address);

var comment = new AddPullRequestReviewCommentInput
Expand Down Expand Up @@ -944,7 +944,7 @@ public async Task<PullRequestDetailModel> PostStandaloneReviewComment(
string path,
int position)
{
var address = HostAddress.Create(localRepository.CloneUrl.Host);
var address = HostAddress.Create(localRepository.CloneUrl);
var graphql = await graphqlFactory.CreateConnection(address);

var addReview = new AddPullRequestReviewInput
Expand Down Expand Up @@ -995,7 +995,7 @@ public async Task<PullRequestDetailModel> DeleteComment(
int pullRequestId,
int commentDatabaseId)
{
var address = HostAddress.Create(localRepository.CloneUrl.Host);
var address = HostAddress.Create(localRepository.CloneUrl);
var apiClient = await apiClientFactory.Create(address);

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

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

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

var input = new AddPullRequestReviewInput
Expand Down