Skip to content

[AOR-187] Update webhook action CEL variables from payload to headers, body, body_json#28

Merged
freddie-poolsideai merged 3 commits intomainfrom
freddie/aor-187-update-webhook-action-cel-variables-from-payload-to-headers
Mar 26, 2026
Merged

[AOR-187] Update webhook action CEL variables from payload to headers, body, body_json#28
freddie-poolsideai merged 3 commits intomainfrom
freddie/aor-187-update-webhook-action-cel-variables-from-payload-to-headers

Conversation

@freddie-poolsideai
Copy link
Copy Markdown
Contributor

Summary

  • Replace the payload CEL variable with headers, body, and body_json to match the backend CEL evaluation engine
  • body is bytes type (for signature verification); body_json is the parsed JSON (map(string, dyn))
  • Update CEL environment, docstrings, both examples, and all webhook tests

Test plan

  • All 15 webhook tests pass with updated body_json.* expressions
  • Full test suite passes (179 tests)
  • Manual: verify a webhook pipeline using body_json deploys and triggers correctly end-to-end

🤖 Generated with Claude Code

freddie-poolsideai and others added 3 commits March 26, 2026 14:01
…s, body, body_json

The backend CEL evaluation engine now exposes headers, body (raw string),
and body_json (parsed JSON) instead of the single payload variable.
Update the SDK model, docstrings, and CEL environment to match.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update both webhook examples to use body_json instead of payload.
Fix body CEL type from StringType to BytesType to match the backend
(body is raw bytes for signature verification; use string(body) to convert).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace all payload.* references in webhook CEL test expressions
with body_json.* to match the updated backend variables.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@freddie-poolsideai freddie-poolsideai self-assigned this Mar 26, 2026
@freddie-poolsideai freddie-poolsideai marked this pull request as ready for review March 26, 2026 14:06
@freddie-poolsideai freddie-poolsideai merged commit 5c19b51 into main Mar 26, 2026
11 of 12 checks passed
@freddie-poolsideai freddie-poolsideai deleted the freddie/aor-187-update-webhook-action-cel-variables-from-payload-to-headers branch March 26, 2026 14:08
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.

2 participants