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
if [[ "${HEAD_REPOSITORY}" != "${REPOSITORY}" ]]; then
echo "::error::Pull requests into main must come from this repository (got '${HEAD_REPOSITORY}')."
exit 1
fi
if [[ "${HEAD_REF}" == "next" || "${HEAD_REF}" == hotfix-* ]]; then
echo "Head branch '${HEAD_REF}' is allowed to target main."
exit 0
fi
echo "::error::Pull requests into main must come from 'next' or a 'hotfix-*' branch (got '${HEAD_REF}'). See ADR-0019 (z-shell/.github) for the branching model."