Skip to content

fix: add missing setup steps to bonk-auto-triage#30765

Merged
mvvmm merged 8 commits into
productionfrom
bonk-auto-triage-checkout
May 12, 2026
Merged

fix: add missing setup steps to bonk-auto-triage#30765
mvvmm merged 8 commits into
productionfrom
bonk-auto-triage-checkout

Conversation

@mvvmm

@mvvmm mvvmm commented May 12, 2026

Copy link
Copy Markdown
Contributor

Fixes the bonk-auto-triage job introduced in #30743:

  • Missing setup steps: Added checkout, pnpm, and Node.js setup to match the bonk job — the job was failing with fatal: not a git repository.

@github-actions

github-actions Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/.github/ @cloudflare/content-engineering, @kodster28, @mvvmm, @colbywhite, @ahaywood, @MohamedH1998
*.js @cloudflare/content-engineering, @kodster28
*.ts @cloudflare/content-engineering, @kodster28

@ask-bonk ask-bonk Bot added engineering Problems or updates to developers.cloudflare.com website bug Something isn't working labels May 12, 2026

@ask-bonk ask-bonk Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Triage Summary

This PR fixes the bonk-auto-triage GitHub Actions workflow by adding the missing repository checkout and Node.js toolchain setup steps. Without these steps, the ask-bonk action fails during its Configure Git phase with fatal: not a git repository.

What changed:

  • Adds actions/checkout, pnpm/action-setup, actions/setup-node, actions/cache, and pnpm install --frozen-lockfile steps to the bonk-auto-triage job
  • Mirrors the exact setup already present in the bonk job, ensuring consistency across both jobs
  • Maintains the more restrictive contents: read permission (correct, since auto-triage does not push commits)

Labels applied: engineering, bug

Flagged issue:

  • The comment block in the bonk-auto-triage job claims the workflow does not check out code, but this PR explicitly adds a checkout step. This comment should be updated to avoid confusing future maintainers (see inline comment).

Overall, this is a clean, targeted fix. No blockers.

Comment thread .github/workflows/bonk.yml
@ask-bonk

ask-bonk Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

Triage completed for PR #30765.

Summary

This PR fixes the bonk-auto-triage GitHub Actions job by adding the missing repository checkout and Node.js toolchain setup steps. The ask-bonk action was failing during its Configure Git phase with fatal: not a git repository because the job had no checkout step. The new steps exactly mirror those already present in the bonk job (same action SHAs, same Node/pnpm versions, same caching strategy), which is the correct approach.

Labels Applied

  • engineering
  • bug

Issue Flagged

I left an inline review comment on the new actions/checkout step noting that the comment block at lines 94-96 of .github/workflows/bonk.yml claims “We do NOT check out or execute the PR's code”, but that statement is now false since this PR explicitly adds a checkout step. The comment should be updated to reflect the new behavior (while still noting that the head.repo == base.repo guard keeps it safe for internal PRs only).

Verdict

No blockers. The change is a clean, targeted fix with correct pinned action versions and appropriate permissions (contents: read is maintained, which is correct since auto-triage doesn't push commits).

github run

@mvvmm mvvmm changed the title fix: add checkout step to bonk-auto-triage job fix: add missing setup steps to bonk-auto-triage job May 12, 2026
@mvvmm mvvmm changed the title fix: add missing setup steps to bonk-auto-triage job fix: add missing setup steps to bonk-auto-triage, use pull_request_target May 12, 2026
@mvvmm

mvvmm commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

/bonk please re-review

@mvvmm mvvmm changed the title fix: add missing setup steps to bonk-auto-triage, use pull_request_target fix: add missing setup steps to bonk-auto-triage May 12, 2026
@ask-bonk

ask-bonk Bot commented May 12, 2026

Copy link
Copy Markdown
Contributor

@mvvmm Bonk workflow was cancelled.

View workflow run · To retry, trigger Bonk again.

@mvvmm

mvvmm commented May 12, 2026

Copy link
Copy Markdown
Contributor Author

/bonk please review

@github-actions

Copy link
Copy Markdown
Contributor

@mvvmm mvvmm merged commit b0038b8 into production May 12, 2026
11 checks passed
@mvvmm mvvmm deleted the bonk-auto-triage-checkout branch May 12, 2026 18:06
Brunojoe1994 pushed a commit to Brunojoe1994/cloudflare-docs that referenced this pull request May 13, 2026
* fix: add checkout step to bonk-auto-triage job

* fix: add full setup steps to bonk-auto-triage to match bonk job

* fix: remove unnecessary pnpm/node_modules setup from bonk jobs

* fix: restore pnpm/node_modules setup to both bonk jobs

* fix: use pull_request_target for auto-triage, checkout base ref, update comment

* fix: revert to pull_request event, remove pull_request_target comment

* chore: rename bonk-auto-triage to bonk-auto-review

* fix: handle missing GH_ORG_TOKEN gracefully in check-codeowner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working engineering Problems or updates to developers.cloudflare.com website size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants