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

Commit 95d0079

Browse files
Merge branch 'features/check-suites' into features/check-suite-annotations
# Conflicts: # src/GitHub.App/ViewModels/GitHubPane/PullRequestCheckViewModel.cs # src/GitHub.VisualStudio/Views/GitHubPane/PullRequestCheckView.xaml
2 parents 8fb18b4 + 93975e7 commit 95d0079

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static IEnumerable<IPullRequestCheckViewModel> Build(IViewViewModelFactor
4848
pullRequestCheckViewModel.Title = statusModel.Context;
4949
pullRequestCheckViewModel.Description = statusModel.Description;
5050
pullRequestCheckViewModel.Status = checkStatus;
51-
pullRequestCheckViewModel.DetailsUrl = new Uri(statusModel.TargetUrl);
51+
pullRequestCheckViewModel.DetailsUrl = statusModel.TargetUrl != null ? new Uri(statusModel.TargetUrl) : null;
5252
pullRequestCheckViewModel.AvatarUrl = statusModel.AvatarUrl ?? DefaultAvatar;
5353
pullRequestCheckViewModel.Avatar = statusModel.AvatarUrl != null
5454
? new BitmapImage(new Uri(statusModel.AvatarUrl))

src/GitHub.VisualStudio/Views/GitHubPane/PullRequestCheckView.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
Visibility="{Binding HasAnnotations, Converter={ghfvs:BooleanToVisibilityConverter}}"
5353
Margin="0 0 0 0" Icon="file_code" Foreground="Black" />
5454
</Label>
55-
<Label Grid.Column="4" HorizontalAlignment="Right">
55+
<Label Grid.Column="4" HorizontalAlignment="Right"
56+
Visibility="{Binding DetailsUrl, Converter={ghfvs:NullToVisibilityConverter}}">
5657
<Hyperlink ToolTip="{Binding DetailsUrl}" Command="{Binding OpenDetailsUrl}">Details</Hyperlink>
5758
</Label>
5859
</Grid>

0 commit comments

Comments
 (0)