mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +00:00
* fix(pr): admit reviewed corrections without rewriting incoming verdicts * fix: register correction review tooling and closeout fixture * test(pr): load review helpers in changelog gate fixtures * fix(pr): keep correction review helper internal * test: join Talk fixture database workers before teardown
40 lines
878 B
Bash
Executable file
40 lines
878 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
if [ "$#" -ne 2 ]; then
|
|
echo "Usage: scripts/pr-prepare <init|correction-init|correction-review-init|validate-commit|gates|push|run> <PR>"
|
|
exit 2
|
|
fi
|
|
|
|
mode="$1"
|
|
pr="$2"
|
|
script_dir="$(cd "$(dirname "$0")" && pwd)"
|
|
base="$script_dir/pr"
|
|
|
|
case "$mode" in
|
|
init)
|
|
exec "$base" prepare-init "$pr"
|
|
;;
|
|
correction-init)
|
|
exec "$base" prepare-correction-init "$pr"
|
|
;;
|
|
correction-review-init)
|
|
exec "$base" prepare-correction-review-init "$pr"
|
|
;;
|
|
validate-commit)
|
|
exec "$base" prepare-validate-commit "$pr"
|
|
;;
|
|
gates)
|
|
exec "$base" prepare-gates "$pr"
|
|
;;
|
|
push)
|
|
exec "$base" prepare-push "$pr"
|
|
;;
|
|
run)
|
|
exec "$base" prepare-run "$pr"
|
|
;;
|
|
*)
|
|
echo "Usage: scripts/pr-prepare <init|correction-init|correction-review-init|validate-commit|gates|push|run> <PR>"
|
|
exit 2
|
|
;;
|
|
esac
|