diff --git a/formulas/dev.toml b/formulas/dev.toml index 9268180..2dd8e0d 100644 --- a/formulas/dev.toml +++ b/formulas/dev.toml @@ -19,7 +19,7 @@ version = 1 model = "sonnet" [context] -files = ["AGENTS.md", "dev/AGENTS.md", "lib/env.sh", "lib/pr-lifecycle.sh", "lib/ci-helpers.sh"] +files = ["AGENTS.md", "dev/AGENTS.md", "lib/env.sh", "lib/pr-lifecycle.sh"] [[steps]] id = "preflight" @@ -76,7 +76,7 @@ id = "ci" title = "Wait for CI and address failures" description = """ Monitor CI pipeline status via Woodpecker API: - woodpecker_api /repos/${WOODPECKER_REPO_ID}/pipelines?branch=dev/{agent}-{issue} + curl -sf "${FORGE_API}/api/v1/repos/${FORGE_REPO}/pipelines?branch=dev/{agent}-{issue}" Wait for CI to complete. If CI fails: @@ -98,7 +98,7 @@ id = "review" title = "Address review feedback" description = """ Check PR for review comments: - curl -sf "${FORGE_API}/pulls/{pr-number}/comments" + curl -sf "${FORGE_API}/api/v1/repos/${FORGE_REPO}/pulls/{pr-number}/comments" For each comment: 1. Understand the feedback @@ -116,18 +116,18 @@ id = "merge" title = "Merge the PR" description = """ Check if PR is approved and CI is green: - curl -sf "${FORGE_API}/pulls/{pr-number}" + curl -sf "${FORGE_API}/api/v1/repos/${FORGE_REPO}/pulls/{pr-number}" If approved (merged=true or approved_by set): 1. Merge the PR: - curl -sf -X PUT "${FORGE_API}/pulls/{pr-number}/merge" \\ + curl -sf -X PUT "${FORGE_API}/api/v1/repos/${FORGE_REPO}/pulls/{pr-number}/merge" \\ -d '{"merge_method":"merge"}' 2. Mirror push to other remotes: mirror_push 3. Close the issue: - curl -sf -X PATCH "${FORGE_API}/issues/{issue-number}" \\ + curl -sf -X PATCH "${FORGE_API}/api/v1/repos/${FORGE_REPO}/issues/{issue-number}" \\ -d '{"state":"closed"}' 4. Delete the branch: