8000 Update GraphQL schema and add CheckConclusionState.(Skipped / Stale) by jcansdale · Pull Request #2471 · github/VisualStudio · GitHub
[go: up one dir, main page]

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

Update GraphQL schema and add CheckConclusionState.(Skipped / Stale) #2471

Merged
merged 5 commits into from
Mar 11, 2020
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions src/GitHub.App/Services/FromGraphQlExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public static class FromGraphQlExtensions
return CheckConclusionState.Success;
case Octokit.GraphQL.Model.CheckConclusionState.Neutral:
return CheckConclusionState.Neutral;
case Octokit.GraphQL.Model.CheckConclusionState.Skipped:
return CheckConclusionState.Skipped;
case Octokit.GraphQL.Model.CheckConclusionState.Stale:
return CheckConclusionState.Stale;
default:
throw new ArgumentOutOfRangeException(nameof(value), value, null);
}
Expand Down
2 changes: 1 addition & 1 deletion src/GitHub.App/Services/MentionsAutoCompleteSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public IObservable<AutoCompleteSuggestion> GetSuggestions()
{
query = new Query().Repository(owner: Var(nameof(owner)), name: Var(nameof(name)))
.Select(repository =>
repository.MentionableUsers(null, null, null, null)
repository.MentionableUsers(null, null, null, null, null)
.AllPages()
.Select(sourceItem =>
new SuggestionItem(sourceItem.Login,
Expand Down
2 changes: 2 additions & 0 deletions src/GitHub.Exports/Models/CheckConclusionState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ public enum CheckConclusionState
Failure,
Success,
Neutral,
Skipped,
Stale
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ async Task<PullRequestDetailModel> ReadPullRequestDetailWithResolved(HostAddress
}).ToList(),
Threads = pr.ReviewThreads(null, null, null, null).AllPages().Select(thread => new PullRequestReviewThreadModel
{
Comments = thread.Comments(null, null, null, null).AllPages().Select(comment => new CommentAdapter
Comments = thread.Comments(null, null, null, null, null).AllPages().Select(comment => new CommentAdapter
{
Id = comment.Id.Value,
PullRequestId = comment.PullRequest.Number,
Expand Down
2 changes: 1 addition & 1 deletion submodules/octokit.graphql.net
0