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

Commit fddc17b

Browse files
committed
Only show margin if there are diffs from PR merge base
1 parent 3adac31 commit fddc17b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/GitHub.InlineReviews/Tags/InlineCommentTagger.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,14 @@ public InlineCommentTagger(
6363
this.peekService = peekService;
6464
}
6565

66-
public bool ShowMargin => file != null;
66+
public bool ShowMargin
67+
{
68+
get
69+
{
70+
var diff = file?.Diff;
71+
return diff != null && diff.Count > 0;
72+
}
73+
}
6774

6875
public event EventHandler<SnapshotSpanEventArgs> TagsChanged;
6976

0 commit comments

Comments
 (0)