This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public sealed class PullRequestAnnotationsViewModelDesigner : PanePageViewModelB
3131 {
3232 Annotation = new CheckRunAnnotationModel
3333 {
34- AnnotationLevel = CheckAnnotationLevel . Notice ,
34+ AnnotationLevel = CheckAnnotationLevel . Warning ,
3535 StartLine = 3 ,
3636 EndLine = 4 ,
3737 Path = "asdf/asdf.cs" ,
@@ -44,7 +44,7 @@ public sealed class PullRequestAnnotationsViewModelDesigner : PanePageViewModelB
4444 {
4545 Annotation = new CheckRunAnnotationModel
4646 {
47- AnnotationLevel = CheckAnnotationLevel . Notice ,
47+ AnnotationLevel = CheckAnnotationLevel . Failure ,
4848 StartLine = 3 ,
4949 EndLine = 4 ,
5050 Path = "asdf/asdf.cs" ,
Original file line number Diff line number Diff line change @@ -124,11 +124,11 @@ void Load(PullRequestDetailModel pullRequest)
124124 CheckRunName = checkSuiteRun . checkRun . Name ;
125125
126126 AnnotationsDictionary = checkSuiteRun . checkRun . Annotations
127- . GroupBy ( model => model . Path )
127+ . GroupBy ( annotation => annotation . Path )
128128 . ToDictionary (
129- annotation => annotation . Key ,
130- annotation => ( IReadOnlyList < IPullRequestAnnotationItemViewModel > ) annotation
131- . Select ( model => new PullRequestAnnotationItemViewModel ( model ) ) ) ;
129+ grouping => grouping . Key ,
130+ grouping => ( IReadOnlyList < IPullRequestAnnotationItemViewModel > ) grouping
131+ . Select ( annotation => new PullRequestAnnotationItemViewModel ( annotation ) ) ) ;
132132 }
133133 finally
134134 {
You can’t perform that action at this time.
0 commit comments