diff --git a/src/format-check/scripts/services/pull-request-service.ts b/src/format-check/scripts/services/pull-request-service.ts index a1af588..f1b0bc1 100644 --- a/src/format-check/scripts/services/pull-request-service.ts +++ b/src/format-check/scripts/services/pull-request-service.ts @@ -106,7 +106,7 @@ export class PullRequestService { var url = `${this.settings.Environment.orgUrl}${this.settings.Environment.projectId}/` + `_apis/git/repositories/${this.settings.Environment.repoId}/diffs/commits` + - `?api-version=7.1&baseVersion=${targetRefName}&targetVersion=${sourceRefName}` + + `?api-version=4.1&baseVersion=${targetRefName}&targetVersion=${sourceRefName}` + `&targetVersionType=branch&baseVersionType=branch&diffCommonCommit=false`; console.log(`Fetching ${url}`); const response = await fetch(url, { @@ -236,4 +236,4 @@ export class PullRequestService { */ export async function getPullRequestService(settings: Settings): Promise { return new PullRequestService(await BaseGitApiService.getGitApi(), settings); -} \ No newline at end of file +}