docs: replace deprecated bodyContains and add {{.Schedule}} in integration guide

Merged
KE
5mo ago
+3-2

What type of PR is this?

/kind docs

What this PR does / why we need it:

docs/integration.md had two stale spots that conflicted with docs/reference.md:

  1. The GitHub Webhooks example used the deprecated bodyContains field, and the filtering options summary listed bodyContains without a deprecation notice while omitting bodyPattern, excludeBodyPatterns, and commentOn.
  2. The template variables table at the end of the file was missing the {{.Schedule}} row that exists in reference.md.

This PR:

  • Swaps bodyContains: "/kelos" for bodyPattern: "/kelos" in the GitHub Webhooks example.
  • Updates the filtering options summary to list bodyPattern, excludeBodyPatterns, and commentOn, and notes that bodyContains is deprecated in favor of bodyPattern.
  • Adds the {{.Schedule}} row to the template variables table so cron users see the schedule string is available.

Which issue(s) this PR is related to:

Fixes #1120

Special notes for your reviewer:

Docs-only change. No code paths touched. The bodyContains field itself remains supported (still documented as deprecated in reference.md), so existing manifests continue to apply.

Does this PR introduce a user-facing change?

NONE

Summary by cubic

Update docs/integration.md to replace deprecated bodyContains with bodyPattern, list bodyPattern, excludeBodyPatterns, and commentOn in filtering options, and add {{.Schedule}} to the template variables. Brings the integration guide in line with docs/reference.md and addresses #1120.