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
# Accept branch names with any username in the format 'u/<username>/pr/*' or 'u/<username>/wip/*'
PR_PATTERN="^u/.+/pr/"
WIP_PATTERN="^u/.+/wip/"
if [[ "${LOWER_BRANCH_NAME}" =~ $PR_PATTERN ]]; then
echo "Branch name '$BRANCH_NAME' is recognized as a PR branch."
elif [[ "${LOWER_BRANCH_NAME}" =~ $WIP_PATTERN ]]; then
echo "Branch name '$BRANCH_NAME' is recognized as a WIP branch."
else
echo "Error: Branch name '$BRANCH_NAME' does not match required naming conventions 'u/<username>/pr/*' or 'u/<username>/wip/*'. Examples: 'u/johndoe/pr/feature', 'u/amy/wip/test'."