From f787e3a8e5d141180d1d49a50c18764ddd6fc68f Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Wed, 25 Nov 2020 11:37:30 +0100 Subject: [PATCH] [ci] Fetch more commits from master for regression testing PRs That only needed for pmd/7.0.x PRs --- .ci/inc/regression-tester.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.ci/inc/regression-tester.inc b/.ci/inc/regression-tester.inc index 5f552ca1b9..ffa9d25ee0 100644 --- a/.ci/inc/regression-tester.inc +++ b/.ci/inc/regression-tester.inc @@ -110,6 +110,11 @@ function regression_tester_executeDanger() { fi # Fetch more commits of the PR for danger and regression tester git fetch --no-tags --depth=50 origin +$(git rev-parse HEAD^2): + # Fetch more commits from master branch for regression tester + if [[ "${PMD_CI_BRANCH}" != "master" ]]; then + git fetch --no-tags --depth=50 origin +master: + git branch master origin/master + fi log_info "Running danger on branch ${PMD_CI_BRANCH}" bundle exec danger --verbose