Why: make requirements, experiments and implementation revisions reviewable while retaining bounded continuous authorization. Evidence: task-card SELF receipts include expected red regressions and 104 passing governance checks; full candidate verification follows. Impact: add project delivery policy and generated task fields; make post-merge reminders read-only. Refs: .task/feature-iterative-delivery.md; policy/delivery.md
13 lines
797 B
Bash
Executable File
13 lines
797 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# 本地钩子(post-merge):pull/merge 落地后提示 owner 按授权闭合任务卡;ff-only 也会触发。
|
|
# precheck [cards] 报告欠账;此钩子只提示,不执行闭合或其他写入。
|
|
# 触发条件收紧到"主检出 + 集成分支 main"——任务 worktree 里 task-sync 的 merge 不触发,
|
|
# 防止把卡片闭合提示混进任务分支现场。
|
|
common=$(git rev-parse --git-common-dir) && common=$(cd "$common" 2>/dev/null && pwd) || exit 0
|
|
mainrepo=$(dirname "$common")
|
|
[ "$mainrepo" = "$PWD" ] || exit 0
|
|
[ "$(git rev-parse --abbrev-ref HEAD)" = "main" ] || exit 0
|
|
[ -f "$mainrepo/scripts/task.sh" ] || exit 0
|
|
echo "[next] owner 按已有授权在主检出运行 make task-close 闭合已合入任务卡;未授权时先取得授权。"
|
|
exit 0
|