Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions buildkite/clone_repositories.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
origin_repo="$(echo "$BUILDKITE_REPO" | sed "s/.*\/\([^\]*\)[.]git/\1/")"

echo "--- Cloning all core repositories"
echo "BUILDKITE_PULL_REQUEST_REPO='${BUILDKITE_PULL_REQUEST_REPO:-}'"
repositories=(dmd druntime phobos tools dub)

# For PRs to dlang/ci, clone itself too, s.t. the code below can be tested
Expand Down
7 changes: 6 additions & 1 deletion buildkite/origin_target_branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ fi
if [ $# -eq 2 ]; then
origin_target_branch="$2"
else
origin_target_branch="${BUILDKITE_PULL_REQUEST_BASE_BRANCH:-$BUILDKITE_BRANCH}"
if [[ "${BUILDKITE_PULL_REQUEST_REPO:-}" =~ github\.com/dlang/ ]]; then
# PR from official dlang repo - try same-named branches for the other repos
origin_target_branch="$BUILDKITE_BRANCH"
else
origin_target_branch="${BUILDKITE_PULL_REQUEST_BASE_BRANCH:-$BUILDKITE_BRANCH}"
fi
fi

if [ "$origin_target_branch" == "master" ] || [ "$origin_target_branch" == "stable" ] ; then
Expand Down