[gjs/ewlsh/fix-ci] ci: When finding common ancestors use source branch or commit branch.
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/ewlsh/fix-ci] ci: When finding common ancestors use source branch or commit branch.
- Date: Wed, 2 Dec 2020 23:13:31 +0000 (UTC)
commit 6cb8335d69a8af4293baf985a64f68e313577018
Author: Evan Welsh <contact evanwelsh com>
Date: Wed Dec 2 17:04:35 2020 -0600
ci: When finding common ancestors use source branch or commit branch.
test/test-ci.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/test/test-ci.sh b/test/test-ci.sh
index c0ebe9ad..e61c3fe5 100755
--- a/test/test-ci.sh
+++ b/test/test-ci.sh
@@ -35,7 +35,7 @@ do_Get_Upstream_Base () {
# should probably be rebased.
git remote add upstream https://gitlab.gnome.org/GNOME/gjs.git || \
git remote set-url upstream https://gitlab.gnome.org/GNOME/gjs.git
- base_branch="${CI_MERGE_REQUEST_TARGET_BRANCH_NAME:-${CI_DEFAULT_BRANCH}}"
+
base_branch="${CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_NAME:-${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME:-${CI_COMMIT_BRANCH:-${CI_DEFAULT_BRANCH}}}}"
git fetch --shallow-since="14 days ago" --no-tags upstream "$base_branch"
git branch ci-upstream-base-branch FETCH_HEAD
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]