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

Commit

Permalink
Make PR# link work.
Browse files Browse the repository at this point in the history
Add the missing command to navigate back to the Pull Request after clicking the PR# link in the header of the PR authoring view.

Fixes #1654.
  • Loading branch information
grokys committed May 16, 2018
1 parent b9939d2 commit a3b4057
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -12,6 +12,7 @@
using GitHub.Services;
using ReactiveUI;
using Serilog;
using static System.FormattableString;

namespace GitHub.ViewModels.GitHubPane
{
Expand Down Expand Up @@ -71,6 +72,8 @@ public class PullRequestReviewAuthoringViewModel : PanePageViewModelBase, IPullR
hasBodyOrComments,
_ => DoSubmit(Octokit.PullRequestReviewEvent.RequestChanges));
Cancel = ReactiveCommand.CreateAsyncTask(DoCancel);
NavigateToPullRequest = ReactiveCommand.Create().OnExecuteCompleted(_ =>
NavigateTo(Invariant($"{LocalRepository.Owner}/{LocalRepository.Name}/pull/{PullRequestModel.Number}")));
}

/// <inheritdoc/>
Expand Down

0 comments on commit a3b4057

Please sign in to comment.