Skip to content

Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.

fix(ci): daily triage PR step — gh pr create lacks --json flag (#14)

Cobus Greyling851430278075
diff --git a/.github/workflows/daily-triage.yml b/.github/workflows/daily-triage.yml
index 4527084..6b96c7e 100644
--- a/.github/workflows/daily-triage.yml
+++ b/.github/workflows/daily-triage.yml
@@ -105,15 +105,15 @@ jobs:
echo "PR #$EXISTING already open"
PR_NUMBER="$EXISTING"
else
- PR_NUMBER=$(gh pr create \
+ gh pr create \
--base main \
--head "$BRANCH" \
--title "chore(loop): daily triage STATE.md $(date -u +%Y-%m-%d)" \
--body "Automated daily triage update from \`daily-triage.yml\`.
- Loop readiness: **${{ steps.audit.outputs.score }}** (${{ steps.audit.outputs.level }})
- - Merges automatically when \`validate\` and \`audit\` pass." \
- --json number -q '.number')
+ - Merges automatically when \`validate\` and \`audit\` pass."
+ PR_NUMBER=$(gh pr view "$BRANCH" --json number -q '.number')
fi
gh pr merge "$PR_NUMBER" --auto --squash --delete-branch