Skip to content

Commit f0a6aac

Browse files
committed
Add missing constructor
1 parent 35fc4f4 commit f0a6aac

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Cake.Tfs/PullRequest/TfsPullRequest.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ public sealed class TfsPullRequest
2525
private readonly RepositoryDescription repositoryDescription;
2626
private readonly GitPullRequest pullRequest;
2727

28+
/// <summary>
29+
/// Initializes a new instance of the <see cref="TfsPullRequest"/> class.
30+
/// </summary>
31+
/// <param name="log">The Cake log context.</param>
32+
/// <param name="settings">Settings for accessing TFS.</param>
33+
/// <exception cref="TfsPullRequestNotFoundException">If <see cref="TfsPullRequestSettings.ThrowExceptionIfPullRequestCouldNotBeFound"/>
34+
/// is set to <c>true</c> and no pull request could be found.</exception>
35+
public TfsPullRequest(ICakeLog log, TfsPullRequestSettings settings)
36+
: this(log, settings, new GitClientFactory())
37+
{
38+
}
39+
2840
/// <summary>
2941
/// Initializes a new instance of the <see cref="TfsPullRequest"/> class.
3042
/// </summary>

0 commit comments

Comments
 (0)