Skip to content

self-development: migrate bodyContains to bodyPattern in spawner configs#1127

Merged
gjkim42 merged 1 commit into
mainfrom
kelos-task-1125
May 12, 2026
Merged

self-development: migrate bodyContains to bodyPattern in spawner configs#1127
gjkim42 merged 1 commit into
mainfrom
kelos-task-1125

Conversation

@kelos-bot
Copy link
Copy Markdown

@kelos-bot kelos-bot Bot commented May 12, 2026

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

All 6 webhook-driven TaskSpawners under self-development/ still use the deprecated bodyContains field in their webhook filters. The Kelos API declares this field deprecated in favor of bodyPattern (api/v1alpha1/taskspawner_types.go:435-438), and the user-facing docs/examples are already being migrated (PR #1119). The self-development files — which contributors read as canonical reference TaskSpawners — had been left out of that scope.

This PR swaps all 10 bodyContains: <literal> entries across the 6 spawners to bodyPattern: <literal>:

File Count
kelos-workers.yaml 1
kelos-pr-responder.yaml 2
kelos-planner.yaml 1
kelos-reviewer.yaml 2
kelos-api-reviewer.yaml 2
kelos-squash-commits.yaml 2

The literal command strings (/kelos pick-up, /kelos plan, /kelos review, /kelos api-review, /kelos squash-commits) contain no Go re2 metacharacters, so substring-match behavior is preserved exactly.

Which issue(s) this PR is related to:

Fixes #1125

Special notes for your reviewer:

Out of scope (per the issue):

  • Anchoring patterns to ^/kelos ... — would change semantics.
  • Adding excludeBodyPatterns to filter quoted-comment matches.
  • The README.md example snippet — kept aligned with the issue's enumerated *.yaml scope.

Verification: grep -c bodyContains self-development/*.yaml now returns 0 for all files.

Does this PR introduce a user-facing change?

NONE

Summary by cubic

Replaced deprecated bodyContains with bodyPattern in all self-development TaskSpawner webhook filters to align with the Kelos API. Addresses #1125; behavior is unchanged since the command strings are literal (no re2 metacharacters).

Written for commit 76c6db8. Summary will update on new commits.

The bodyContains field is deprecated in favor of bodyPattern. Swap all
10 filter entries across the 6 webhook-driven self-development
TaskSpawners so contributors copying these manifests as templates do
not propagate deprecated API usage.

The literal command strings (/kelos pick-up, /kelos plan, /kelos
review, /kelos api-review, /kelos squash-commits) contain no Go re2
metacharacters, so the substring-match semantics are preserved.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

kelos-bot[bot] has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 6 files

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Configuration Alignment: self-development TaskSpawners still use deprecated bodyContains in 10 filter entries

1 participant