Compare commits
1 commit
aff0aada81
...
963d745bde
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
963d745bde |
1 changed files with 6 additions and 6 deletions
|
|
@ -19,7 +19,7 @@ version = 1
|
|||
model = "sonnet"
|
||||
|
||||
[context]
|
||||
files = ["AGENTS.md", "dev/AGENTS.md", "lib/env.sh", "lib/pr-lifecycle.sh"]
|
||||
files = ["AGENTS.md", "dev/AGENTS.md", "lib/env.sh", "lib/pr-lifecycle.sh", "lib/ci-helpers.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:
|
||||
curl -sf "${FORGE_API}/api/v1/repos/${FORGE_REPO}/pipelines?branch=dev/{agent}-{issue}"
|
||||
woodpecker_api /repos/${WOODPECKER_REPO_ID}/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}/api/v1/repos/${FORGE_REPO}/pulls/{pr-number}/comments"
|
||||
curl -sf "${FORGE_API}/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}/api/v1/repos/${FORGE_REPO}/pulls/{pr-number}"
|
||||
curl -sf "${FORGE_API}/pulls/{pr-number}"
|
||||
|
||||
If approved (merged=true or approved_by set):
|
||||
1. Merge the PR:
|
||||
curl -sf -X PUT "${FORGE_API}/api/v1/repos/${FORGE_REPO}/pulls/{pr-number}/merge" \\
|
||||
curl -sf -X PUT "${FORGE_API}/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}/api/v1/repos/${FORGE_REPO}/issues/{issue-number}" \\
|
||||
curl -sf -X PATCH "${FORGE_API}/issues/{issue-number}" \\
|
||||
-d '{"state":"closed"}'
|
||||
|
||||
4. Delete the branch:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue