You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# We check whether the PR is done from a branch that has the same name of
59
+
# the target branch in the ROOT repository using base_ref and head_ref:
60
+
# - The base_ref is e.g. "master" or "v6-38-00-patches"
61
+
# - The head_ref for PRs is formatted as <PR branch>:<Fork branch> e.g. "refs/pull/20742/head:cppyy_fixup"
62
+
ifnot":"inargs.head_ref:
63
+
build_utils.print_error(f"This has been identified as a PR build. However, the head-ref is {args.head_ref}.")
64
+
branch_in_fork=args.head_ref.split(":")[-1]
65
+
ifbranch_in_fork==args.base_ref:
66
+
build_utils.print_error(f"The branch name in the fork and the base-ref are both called {branch_in_fork}. This is not supported. Please change the name of the branch in the forked repository.")
67
+
sys.exit(1)
68
+
else:
58
69
build_utils.print_info("head_ref same as base_ref, assuming non-PR build")
0 commit comments