Merge pull request 'fix: feat/formula not merged but formula templates and label docs already on main (#69)' (#114) from fix/issue-69 into main
This commit is contained in:
commit
5bba51b547
2 changed files with 12 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ Optional but recommended:
|
||||||
|-------|---------|
|
|-------|---------|
|
||||||
| `tech-debt` | Gardener can promote these to `backlog` |
|
| `tech-debt` | Gardener can promote these to `backlog` |
|
||||||
| `blocked` | Dev-agent marks issues with unmet dependencies |
|
| `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
|
### Required: Branch protection
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -383,6 +383,17 @@ fi
|
||||||
|
|
||||||
log "Issue: ${ISSUE_TITLE}"
|
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
|
# PREFLIGHT: Check dependencies before doing any work
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue