also looking at this
fix(ci): give the repair loop the guard it already had
#1407
10 files
+229
-34
| @@ -1620,8 +1620,13 @@ ${generateComposerSetupSteps()} | ||
| 1620 | 1620 | - name: Install dependencies |
| 1621 | 1621 | run: bun install |
| 1622 | 1622 | |
| 1623 | # --pr is what carries the diagnosis back to the pull request, and it is | |
| 1624 | # also where the attempt counter lives: without it the anti-loop guard | |
| 1625 | # has nothing to read and every failure looks like the first one. | |
| 1626 | # A run triggered from a fork has no entry here, and the step is skipped. | |
| 1623 | 1627 | - name: Attempt a fix |
| 1624 | run: bunx @buddysh/buddy fix-ci --run-id \${{ github.event.workflow_run.id }} --verbose | |
| 1628 | if: \${{ github.event.workflow_run.pull_requests[0] }} | |
| 1629 | run: bunx @buddysh/buddy fix-ci --run-id \${{ github.event.workflow_run.id }} --pr \${{ github.event.workflow_run.pull_requests[0].number }} --verbose | |
| 1625 | 1630 | env: |
| 1626 | 1631 | GITHUB_TOKEN: \${{ secrets.GITHUB_TOKEN }} |
| 1627 | 1632 | ANTHROPIC_API_KEY: \${{ secrets.ANTHROPIC_API_KEY }} |