/// <inheritdoc/> public async Task <IPullRequestSession> GetSession(IPullRequestModel pullRequest) { if (await service.EnsureLocalBranchesAreMarkedAsPullRequests(repository, pullRequest)) { // The branch for the PR was not previously marked with the PR number in the git // config so we didn't pick up that the current branch is a PR branch. That has // now been corrected, so call RepoChanged to make sure everything is up-to-date. await RepoChanged(repository); } return(await GetSessionInternal(pullRequest)); }
/// <inheritdoc/> public async Task <IPullRequestSession> GetSession(string owner, string name, int number) { var session = await GetSessionInternal(owner, name, number); if (await service.EnsureLocalBranchesAreMarkedAsPullRequests(repository, session.PullRequest)) { // The branch for the PR was not previously marked with the PR number in the git // config so we didn't pick up that the current branch is a PR branch. That has // now been corrected, so call StatusChanged to make sure everything is up-to-date. await StatusChanged(); } return(session); }