We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2c3c88 commit 82e0410Copy full SHA for 82e0410
1 file changed
buildkite/origin_target_branch.sh
@@ -10,7 +10,12 @@ fi
10
if [ $# -eq 2 ]; then
11
origin_target_branch="$2"
12
else
13
- origin_target_branch="${BUILDKITE_PULL_REQUEST_BASE_BRANCH:-$BUILDKITE_BRANCH}"
+ if [[ "${BUILDKITE_PULL_REQUEST_REPO:-}" =~ github\.com/dlang/ ]]; then
14
+ # PR from official dlang repo - try same-named branches for the other repos
15
+ origin_target_branch="$BUILDKITE_BRANCH"
16
+ else
17
+ origin_target_branch="${BUILDKITE_PULL_REQUEST_BASE_BRANCH:-$BUILDKITE_BRANCH}"
18
+ fi
19
fi
20
21
if [ "$origin_target_branch" == "master" ] || [ "$origin_target_branch" == "stable" ] ; then
0 commit comments