From cbf7c4e3b8919b4549cfc7235fc513d5975acff5 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Thu, 3 Oct 2024 20:35:17 +0200 Subject: [PATCH] fetch two --- azure-pipelines.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"