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

Commit aeb7f79

Browse files
authored
Merge pull request #1846 from github/xml-doc-comments
Repairing xml comments
2 parents 698f7b6 + 41ca8a2 commit aeb7f79

26 files changed

+48
-25
lines changed

src/GitHub.Api/ILoginManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Task<User> LoginWithToken(
7272
/// Logs out of GitHub server.
7373
/// </summary>
7474
/// <param name="hostAddress">The address of the server.</param>
75+
/// <param name="client">An octokit client configured to access the server.</param>
7576
Task Logout(HostAddress hostAddress, IGitHubClient client);
7677
}
7778
}

src/GitHub.Api/LoginManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ public class LoginManager : ILoginManager
3434
/// </summary>
3535
/// <param name="keychain">The keychain in which to store credentials.</param>
3636
/// <param name="twoFactorChallengeHandler">The handler for 2FA challenges.</param>
37+
/// <param name="oauthListener">The callback listener to signal successful login.</param>
3738
/// <param name="clientId">The application's client API ID.</param>
3839
/// <param name="clientSecret">The application's client API secret.</param>
40+
/// <param name="scopes">List of scopes to authenticate for</param>
3941
/// <param name="authorizationNote">An note to store with the authorization.</param>
4042
/// <param name="fingerprint">The machine fingerprint.</param>
4143
public LoginManager(

src/GitHub.App/Extensions/AkavacheExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,12 @@ static IObservable<T> GetAndFetchLatestFromIndex<T>(this IBlobCache This,
252252
/// <typeparam name="T"></typeparam>
253253
/// <param name="blobCache">The cache to retrieve the object from.</param>
254254
/// <param name="key">The key to look up the cache value with.</param>
255-
/// <param name="item">The item to add to the database</param>
255+
/// <param name="fetchFunc">The fetch function.</param>
256256
/// <param name="maxCacheDuration">
257257
/// The maximum age of a cache object before the object is treated as
258258
/// expired and unusable. Cache objects older than this will be treated
259259
/// as a cache miss.
260+
/// </param>
260261
/// <returns></returns>
261262
public static IObservable<T> PutAndUpdateIndex<T>(this IBlobCache blobCache,
262263
string key,

src/GitHub.App/Services/PullRequestEditorService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ public IVsTextView FindActiveView()
336336
/// <param name="fromLines">The document we're navigating from.</param>
337337
/// <param name="toLines">The document we're navigating to.</param>
338338
/// <param name="line">The 0-based line we're navigating from.</param>
339+
/// <param name="matchLinesAbove"></param>
339340
/// <returns>The best matching line in <see cref="toLines"/></returns>
340341
public int FindMatchingLine(IList<string> fromLines, IList<string> toLines, int line, int matchLinesAbove = 0)
341342
{

src/GitHub.App/ViewModels/GitHubPane/PullRequestDetailViewModel.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,13 @@ public sealed class PullRequestDetailViewModel : PanePageViewModelBase, IPullReq
6161
/// <summary>
6262
/// Initializes a new instance of the <see cref="PullRequestDetailViewModel"/> class.
6363
/// </summary>
64-
/// <param name="localRepository">The local repository.</param>
65-
/// <param name="modelService">The model service.</param>
6664
/// <param name="pullRequestsService">The pull requests service.</param>
6765
/// <param name="sessionManager">The pull request session manager.</param>
66+
/// <param name="modelServiceFactory">The model service factory</param>
6867
/// <param name="usageTracker">The usage tracker.</param>
6968
/// <param name="teamExplorerContext">The context for tracking repo changes</param>
69+
/// <param name="files">The view model which will display the changed files</param>
70+
/// <param name="syncSubmodulesCommand">A command that will be run when <see cref="SyncSubmodules"/> is executed</param>
7071
[ImportingConstructor]
7172
public PullRequestDetailViewModel(
7273
IPullRequestService pullRequestsService,
@@ -200,6 +201,7 @@ public string TargetBranchDisplayName
200201
private set { this.RaiseAndSetIfChanged(ref targetBranchDisplayName, value); }
201202
}
202203

204+
/// <summary>
203205
/// Gets a value indicating whether the pull request branch is checked out.
204206
/// </summary>
205207
public bool IsCheckedOut

src/GitHub.App/ViewModels/GitHubPane/PullRequestDirectoryNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class PullRequestDirectoryNode : IPullRequestDirectoryNode
1212
/// <summary>
1313
/// Initializes a new instance of the <see cref="PullRequestDirectoryNode"/> class.
1414
/// </summary>
15-
/// <param name="path">The path to the directory, relative to the repository.</param>
15+
/// <param name="relativePath">The path to the directory, relative to the repository.</param>
1616
public PullRequestDirectoryNode(string relativePath)
1717
{
1818
DirectoryName = System.IO.Path.GetFileName(relativePath);

src/GitHub.Exports.Reactive/Services/IGitClient.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public interface IGitClient
110110
/// </returns>
111111
Task<ContentChanges> CompareWith(IRepository repository, string sha1, string sha2, string path, byte[] contents);
112112

113+
/// <summary>
113114
/// Gets the value of a configuration key.
114115
/// </summary>
115116
/// <param name="repository">The repository.</param>
@@ -189,7 +190,7 @@ public interface IGitClient
189190
/// <summary>
190191
/// Find the merge base SHA between two commits.
191192
/// </summary>
192-
/// <param name="repository">The repository.</param>
193+
/// <param name="repo">The repository.</param>
193194
/// <param name="targetCloneUrl">The clone url of the PR target repo.</param>
194195
/// <param name="baseSha">The PR base SHA.</param>
195196
/// <param name="headSha">The PR head SHA.</param>
@@ -201,9 +202,10 @@ public interface IGitClient
201202
/// <exception cref="LibGit2Sharp.NotFoundException">Thrown when the merge base can't be found.</exception>
202203
Task<string> GetPullRequestMergeBase(IRepository repo, UriString targetCloneUrl, string baseSha, string headSha, string baseRef, int pullNumber);
203204

205+
/// <summary>
204206
/// Checks whether the current head is pushed to its remote tracking branch.
205207
/// </summary>
206-
/// <param name="repository">The repository.</param>
208+
/// <param name="repo">The repository.</param>
207209
/// <returns></returns>
208210
Task<bool> IsHeadPushed(IRepository repo);
209211

@@ -212,7 +214,7 @@ public interface IGitClient
212214
/// <paramref name="baseBranch"/> and <paramref name="compareBranch"/> and returns their
213215
/// commit messages.
214216
/// </summary>
215-
/// <param name="repository">The repository.</param>
217+
/// <param name="repo">The repository.</param>
216218
/// <param name="baseBranch">The base branch to find a merge base with.</param>
217219
/// <param name="compareBranch">The compare branch to find a merge base with.</param>
218220
/// <param name="maxCommits">The maximum number of commits to return.</param>

src/GitHub.Exports.Reactive/Services/IPullRequestService.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public interface IPullRequestService
1818
/// <param name="owner">The repository owner.</param>
1919
/// <param name="name">The repository name.</param>
2020
/// <param name="after">The end cursor of the previous page, or null for the first page.</param>
21+
/// <param name="states">The pull request states to filter by</param>
2122
/// <returns>A page of pull request item models.</returns>
2223
Task<Page<PullRequestListItemModel>> ReadPullRequests(
2324
HostAddress address,
@@ -84,6 +85,7 @@ IObservable<IPullRequestModel> CreatePullRequest(IModelService modelService,
8485
/// Sync submodules on the current branch.
8586
/// </summary>
8687
/// <param name="repository">The repository.</param>
88+
/// <param name="progress">A method that will be called with progress messages</param>
8789
Task<bool> SyncSubmodules(ILocalRepositoryModel repository, Action<string> progress);
8890

8991
/// <summary>

src/GitHub.Exports.Reactive/Services/IPullRequestSession.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ Task PostReviewComment(
153153

154154
/// <summary>
155155
/// Refreshes the pull request session.
156+
/// </summary>
156157
/// <returns>A task which completes when the session has completed refreshing.</returns>
157158
Task Refresh();
158159
}

src/GitHub.Exports.Reactive/Services/IPullRequestSessionManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace GitHub.Services
1414
/// If the currently checked out branch represents a pull request then <see cref="CurrentSession"/>
1515
/// will return an <see cref="IPullRequestSession"/> containing the details of that pull request.
1616
/// A session for any other pull request can also be retrieved by calling
17-
/// <see cref="GetSession(IPullRequestModel)"/>.
17+
/// <see cref="GetSession(string, string, int)"/>.
1818
///
1919
/// Calling <see cref="GetLiveFile(string, ITextView, ITextBuffer)"/> will return an
2020
/// <see cref="IPullRequestSessionFile"/> which tracks both the contents of a text buffer and the

0 commit comments

Comments
 (0)