[ci] Fetch more commits from master for regression testing PRs
That only needed for pmd/7.0.x PRs
This commit is contained in:
@ -110,6 +110,11 @@ function regression_tester_executeDanger() {
|
|||||||
fi
|
fi
|
||||||
# Fetch more commits of the PR for danger and regression tester
|
# Fetch more commits of the PR for danger and regression tester
|
||||||
git fetch --no-tags --depth=50 origin +$(git rev-parse HEAD^2):
|
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}"
|
log_info "Running danger on branch ${PMD_CI_BRANCH}"
|
||||||
bundle exec danger --verbose
|
bundle exec danger --verbose
|
||||||
|
Reference in New Issue
Block a user