Version-aware branch naming (X.Y.Z.Q/{TASK_CODE}-{FEATURE}-{SEQ}),
branch creation from origin/test with origin/main fallback, and the
PR-into-test merge rule. Ships a TypeScript CLI (next, create) plus
shell modules (loggers, base, cli) run via Taskfile.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
29 lines
577 B
Bash
29 lines
577 B
Bash
#!/bin/bash
|
|
# -------------------------------------------------------------------------------------
|
|
#
|
|
#
|
|
#
|
|
# -------------------------------------------------------------------------------------
|
|
|
|
export LOCAL_HOME_DIR=$(pwd)
|
|
export LOCAL_HOME_DIR_NAME=${PWD##*/}
|
|
export LOCAL_GIT_ROOT_DIR=$(dirname "${LOCAL_HOME_DIR}")
|
|
|
|
TMP_BASE_FILE_DOTENV=".env"
|
|
if
|
|
[ -e "${TMP_BASE_FILE_DOTENV}" ]
|
|
then
|
|
export $(
|
|
grep -v '^#' "${TMP_BASE_FILE_DOTENV}" | xargs
|
|
) >/dev/null 2>&1
|
|
fi
|
|
|
|
ALL_ARGS=("$@")
|
|
while [[ "$#" -gt 0 ]]; do
|
|
case $1 in
|
|
*) ;;
|
|
esac
|
|
shift
|
|
done
|
|
set -- "${ALL_ARGS[@]}"
|