diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b46cbc7dd0d78..69519a28ed7cc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,7 +20,8 @@ stages: RET: 'true' steps: - checkout: self - fetchDepth: '1' + # We only need two: the PR merge commit, and the actual commit added by the user + fetchDepth: '2' - bash: | git_log=`git log --max-count=1 --skip=1 --pretty=format:"%B" | tr "\n" " "` echo "##vso[task.setvariable variable=log]$git_log"