Add a human-merge label that keeps autopilot from merging
ci / lint (pull_request) Successful in 12s
ci / lint (pull_request) Successful in 12s
autopilot skips both human checkpoints: approval before the build and the merge. Scheduled update issues in homelab want the hands-off build but a human merge, since merging there deploys. With human-merge also on the issue, @pm is told to hand back at phase 3 and publish.sh refuses MERGE_PR. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
85be0a3288
commit
cbe3e3cbc0
6 files changed
+28
-13
No files matched your search
@@ -3,7 +3,7 @@
|
||||
# plain-text reply (/tmp/agent_out.md) plus the raw event stream (/tmp/events.jsonl).
|
||||
#
|
||||
# Required env (provided by the workflow step):
|
||||
# XAI_API_KEY SELF_TOKEN NAME MODEL VISION MODE HAS_IMAGES BRANCH AUTOPILOT NUM TITLE
|
||||
# XAI_API_KEY SELF_TOKEN NAME MODEL VISION MODE HAS_IMAGES BRANCH AUTOPILOT AUTOMERGE NUM TITLE
|
||||
# IBODY CMT
|
||||
# FILES (the opencode -f image flags, from the imgs step output)
|
||||
# AUTOPILOT is 'true' when the issue carries the `autopilot` label (label-gated autopilot mode).
|
||||
@@ -74,14 +74,21 @@ if [ "$MODE" = "comment" ]; then
|
||||
auto-start any dev — the maintainer @mentions an agent on each sub-issue when ready."
|
||||
if [ "$AUTOPILOT" = "true" ]; then
|
||||
ACTION="$ACTION
|
||||
AUTOPILOT MODE IS ACTIVE (this issue carries the 'autopilot' label) — it changes exactly TWO
|
||||
things for you; everything else above is unchanged:
|
||||
AUTOPILOT MODE IS ACTIVE (this issue carries the 'autopilot' label) — it changes only the
|
||||
phases below; everything else above is unchanged:
|
||||
- PHASE 1: do NOT ask '@ffaerber ready to build?'. Present your SHORT plan AND end with a
|
||||
'DELEGATE: @<dev>' line in the SAME reply. Only skip delegating (and ask @ffaerber) if the task
|
||||
is genuinely ambiguous or unsafe.
|
||||
is genuinely ambiguous or unsafe."
|
||||
if [ "$AUTOMERGE" = "true" ]; then
|
||||
ACTION="$ACTION
|
||||
- PHASE 3: do NOT ask the human to merge. When @qa has approved, end your reply with EXACTLY
|
||||
'MERGE_PR' — the automation merges the PR and closes this issue. You are the ONLY agent that
|
||||
merges, and only here."
|
||||
else
|
||||
ACTION="$ACTION
|
||||
- PHASE 3 is UNCHANGED: this issue also carries 'human-merge', so when @qa has approved, tell
|
||||
@ffaerber the PR is ready to merge. Do NOT emit 'MERGE_PR'."
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if [ "$NAME" = "qa" ]; then
|
||||
|
||||
Reference in new issue
Block a user