Skip to content

add ask-bonk workflows#6140

Merged
elithrar merged 4 commits intomainfrom
add-bonk-workflows
Feb 23, 2026
Merged

add ask-bonk workflows#6140
elithrar merged 4 commits intomainfrom
add-bonk-workflows

Conversation

@elithrar
Copy link
Copy Markdown
Contributor

Add two ask-bonk GitHub Actions workflows, both restricted to CODEOWNERS only.

bonk.yml -- comment-triggered workflow. Responds to /bonk or @ask-bonk mentions in issue comments, PR comments, and PR reviews. Uses contents: write so it can push changes when asked. Mirrors the cloudflare-docs bonk.yml.

new-pr-review.yml -- auto-reviews new PRs when opened (non-fork only). Uses contents: read (review-only, no auto-fixes). Custom prompt tailored for workerd code review:

  • C++ quality (KJ patterns, ownership, lifetime safety)
  • backward compat violations (missing compat flags)
  • autogate usage for risky changes
  • security (sandbox escapes, capability leaks, input validation)
  • Cap'n Proto wire compat
  • JSG binding correctness
  • Node.js compat layer behavior
  • Bazel BUILD correctness

Skips formatting issues (clang-format handles those). Responds with LGTM when there are no actionable issues.

Required secrets (need to be configured if not already present):

  • CF_AI_GATEWAY_ACCOUNT_ID
  • CF_AI_GATEWAY_NAME
  • CF_AI_GATEWAY_TOKEN

@elithrar elithrar requested a review from a team as a code owner February 23, 2026 20:23
@elithrar elithrar requested a review from danlapid February 23, 2026 20:23
@elithrar elithrar requested a review from a team as a code owner February 23, 2026 20:23
@elithrar elithrar requested a review from a team as a code owner February 23, 2026 20:34
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Feb 23, 2026

Merging this PR will degrade performance by 16.23%

❌ 1 regressed benchmark
✅ 69 untouched benchmarks
⏩ 129 skipped benchmarks1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
jsonResponse[Response] 39.9 µs 47.6 µs -16.23%

Comparing add-bonk-workflows (dfbe3a5) with main (69ab367)

Open in CodSpeed

Footnotes

  1. 129 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@elithrar elithrar merged commit 2c2babc into main Feb 23, 2026
22 checks passed
@elithrar elithrar deleted the add-bonk-workflows branch February 23, 2026 21:15

**JSG bindings:** Changes in jsg/ must correctly bridge V8 and C++. Check type conversions, GC safety, and proper use of jsg:: macros.

**Node.js compatibility (src/node/, src/workerd/api/node/):** Verify behavior matches Node.js. Check for missing error cases and edge cases in polyfills.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We can give this a shot but I'm not sure this is nuanced enough... this may likely end up flagging intentional stubs as issues.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Then we edit it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We need an AGENTS.md as well here - if we can get that here we can trim this down too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants