Skip to content

Commit b11d9f3

Browse files
rothsandropascalberger
authored andcommitted
Fix GetModifiedFiles to request all changes
1 parent 45e6bab commit b11d9f3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Cake.AzureDevOps.Tests/Fakes/FakeAllSetGitClientFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected override Mock<GitHttpClient> Setup(Mock<GitHttpClient> m)
130130
It.IsAny<string>(),
131131
It.IsAny<Guid>(),
132132
true,
133-
null,
133+
int.MaxValue,
134134
null,
135135
It.IsAny<GitBaseVersionDescriptor>(),
136136
It.IsAny<GitTargetVersionDescriptor>(),

src/Cake.AzureDevOps.Tests/Fakes/FakeNullForMethodsGitClientFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ protected override Mock<GitHttpClient> Setup(Mock<GitHttpClient> m)
1515
m.Setup(arg => arg.CreatePullRequestStatusAsync(It.IsAny<GitPullRequestStatus>(), It.IsAny<Guid>(), It.IsAny<int>(), It.IsAny<object>(), It.IsAny<CancellationToken>()))
1616
.ReturnsAsync(() => null);
1717

18-
m.Setup(arg => arg.GetCommitDiffsAsync(It.IsAny<string>(), It.IsAny<Guid>(), true, null, null, It.IsAny<GitBaseVersionDescriptor>(), It.IsAny<GitTargetVersionDescriptor>(), null, CancellationToken.None))
18+
m.Setup(arg => arg.GetCommitDiffsAsync(It.IsAny<string>(), It.IsAny<Guid>(), true, int.MaxValue, null, It.IsAny<GitBaseVersionDescriptor>(), It.IsAny<GitTargetVersionDescriptor>(), null, CancellationToken.None))
1919
.ReturnsAsync(() => new GitCommitDiffs { ChangeCounts = [], Changes = [] });
2020

2121
m.Setup(arg => arg.UpdateThreadAsync(It.IsAny<GitPullRequestCommentThread>(), It.IsAny<Guid>(), It.IsAny<int>(), It.IsAny<int>(), null, CancellationToken.None))

src/Cake.AzureDevOps/Repos/PullRequest/AzureDevOpsPullRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ public IEnumerable<FilePath> GetModifiedFiles()
407407
this.ProjectName,
408408
this.RepositoryId,
409409
true, // bool? diffCommonCommit
410-
null, // int? top
410+
int.MaxValue, // int? top
411411
null, // int? skip
412412
baseVersionDescriptor,
413413
targetVersionDescriptor)

0 commit comments

Comments
 (0)