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

Commit 27ce99a

Browse files
committed
Tweaked parameter names.
1 parent 81b3a12 commit 27ce99a

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

src/GitHub.InlineReviews/Services/IPullRequestSessionService.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ Task<byte[]> ExtractFileFromGit(
8585
/// <summary>
8686
/// Posts a new PR review comment.
8787
/// </summary>
88-
/// <param name="repository">The repository.</param>
89-
/// <param name="repositoryOwner">The owner of the repository fork to post to.</param>
88+
/// <param name="localRepository">The local repository.</param>
89+
/// <param name="remoteRepositoryOwner">The owner of the repository fork to post to.</param>
9090
/// <param name="user">The user posting the comment.</param>
9191
/// <param name="number">The pull request number.</param>
9292
/// <param name="body">The comment body.</param>
@@ -95,8 +95,8 @@ Task<byte[]> ExtractFileFromGit(
9595
/// <param name="position">The line index in the diff to comment on.</param>
9696
/// <returns>A model representing the posted comment.</returns>
9797
Task<IPullRequestReviewCommentModel> PostReviewComment(
98-
ILocalRepositoryModel repository,
99-
string repositoryOwner,
98+
ILocalRepositoryModel localRepository,
99+
string remoteRepositoryOwner,
100100
IAccount user,
101101
int number,
102102
string body,
@@ -107,16 +107,16 @@ Task<IPullRequestReviewCommentModel> PostReviewComment(
107107
/// <summary>
108108
/// Posts a PR review comment reply.
109109
/// </summary>
110-
/// <param name="repository">The repository.</param>
111-
/// <param name="repositoryOwner">The owner of the repository fork to post to.</param>
110+
/// <param name="localRepository">The local repository.</param>
111+
/// <param name="remoteRepositoryOwner">The owner of the repository fork to post to.</param>
112112
/// <param name="user">The user posting the comment.</param>
113113
/// <param name="number">The pull request number.</param>
114114
/// <param name="body">The comment body.</param>
115115
/// <param name="inReplyTo">The comment ID to reply to.</param>
116116
/// <returns>A model representing the posted comment.</returns>
117117
Task<IPullRequestReviewCommentModel> PostReviewComment(
118-
ILocalRepositoryModel repository,
119-
string repositoryOwner,
118+
ILocalRepositoryModel localRepository,
119+
string remoteRepositoryOwner,
120120
IAccount user,
121121
int number,
122122
string body,

src/GitHub.InlineReviews/Services/PullRequestSessionService.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -137,21 +137,21 @@ public async Task<string> GetPullRequestMergeBase(ILocalRepositoryModel reposito
137137

138138
/// <inheritdoc/>
139139
public async Task<IPullRequestReviewCommentModel> PostReviewComment(
140-
ILocalRepositoryModel repository,
141-
string repositoryOwner,
140+
ILocalRepositoryModel localRepository,
141+
string remoteRepositoryOwner,
142142
IAccount user,
143143
int number,
144144
string body,
145145
string commitId,
146146
string path,
147147
int position)
148148
{
149-
var address = HostAddress.Create(repository.CloneUrl.Host);
149+
var address = HostAddress.Create(localRepository.CloneUrl.Host);
150150
var apiClient = await apiClientFactory.Create(address);
151151

152152
var result = await apiClient.CreatePullRequestReviewComment(
153-
repositoryOwner,
154-
repository.Name,
153+
remoteRepositoryOwner,
154+
localRepository.Name,
155155
number,
156156
body,
157157
commitId,
@@ -177,19 +177,19 @@ public async Task<IPullRequestReviewCommentModel> PostReviewComment(
177177

178178
/// <inheritdoc/>
179179
public async Task<IPullRequestReviewCommentModel> PostReviewComment(
180-
ILocalRepositoryModel repository,
181-
string repositoryOwner,
180+
ILocalRepositoryModel localRepository,
181+
string remoteRepositoryOwner,
182182
IAccount user,
183183
int number,
184184
string body,
185185
int inReplyTo)
186186
{
187-
var address = HostAddress.Create(repository.CloneUrl.Host);
187+
var address = HostAddress.Create(localRepository.CloneUrl.Host);
188188
var apiClient = await apiClientFactory.Create(address);
189189

190190
var result = await apiClient.CreatePullRequestReviewComment(
191-
repositoryOwner,
192-
repository.Name,
191+
remoteRepositoryOwner,
192+
localRepository.Name,
193193
number,
194194
body,
195195
inReplyTo);

0 commit comments

Comments
 (0)