fix: feat/formula not merged but formula templates and label docs already on main (#69)
- dev-agent.sh: add explicit guard that skips formula-labeled issues with a clear log message instead of silently producing no formula behavior - BOOTSTRAP.md: rewrite formula label entry to state it is not yet functional and that dev-agent will skip such issues until feat/formula is merged Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
56dd469687
commit
2446543545
2 changed files with 12 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ Optional but recommended:
|
|||
|-------|---------|
|
||||
| `tech-debt` | Gardener can promote these to `backlog` |
|
||||
| `blocked` | Dev-agent marks issues with unmet dependencies |
|
||||
| `formula` | *(requires `feat/formula` merge)* Dev-agent uses a structured TOML formula instead of freeform. Issue body must include YAML front matter, e.g.:<br>`---`<br>`formula: upgrade-dependency`<br>`vars:`<br>` package: viem`<br>` ecosystem: npm`<br>`---` |
|
||||
| `formula` | **Not yet functional.** Formula dispatch lives on the unmerged `feat/formula` branch. Dev-agent will skip any issue with this label until that branch is merged. Template files exist in `formulas/` for future use. |
|
||||
|
||||
### Required: Branch protection
|
||||
|
||||
|
|
|
|||
|
|
@ -383,6 +383,17 @@ fi
|
|||
|
||||
log "Issue: ${ISSUE_TITLE}"
|
||||
|
||||
# =============================================================================
|
||||
# GUARD: Reject formula-labeled issues (feat/formula not yet merged)
|
||||
# =============================================================================
|
||||
ISSUE_LABELS=$(echo "$ISSUE_JSON" | jq -r '[.labels[].name] | join(",")') || true
|
||||
if echo "$ISSUE_LABELS" | grep -qw 'formula'; then
|
||||
log "SKIP: issue #${ISSUE} has 'formula' label but formula dispatch is not yet implemented (feat/formula branch not merged)"
|
||||
notify "issue #${ISSUE} skipped — formula label requires feat/formula branch (not yet merged to main)"
|
||||
echo '{"status":"unmet_dependency","blocked_by":"formula dispatch not implemented — feat/formula branch not merged to main","suggestion":null}' > "$PREFLIGHT_RESULT"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# =============================================================================
|
||||
# PREFLIGHT: Check dependencies before doing any work
|
||||
# =============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue