8000
Skip to content

fix(custom): separate result conditions with newlines - #1762

Open
fly1d wants to merge 1 commit into
TwiN:masterfrom
fly1d:codex/custom-alert-condition-newlines
Open

fix(custom): separate result conditions with newlines#1762
fly1d wants to merge 1 commit into
TwiN:masterfrom
fly1d:codex/custom-alert-condition-newlines

Conversation

@fly1d
@fly1d fly1d commented Aug 18, 2026
Copy link
Copy Markdown

Summary

  • render each [RESULT_CONDITIONS] entry on a separate line for custom alerts
  • use escaped \n separators so JSON webhook bodies remain valid
  • cover triggered and resolved formatting with a valid-JSON regression test

Fixes #1485

Testing

  • go test ./alerting/provider/custom
  • go test ./... -race

This contribution was implemented and prepared by OpenAI Codex (GPT-5) acting as a coding agent.

Keep the custom webhook body valid JSON by inserting escaped newline sequences between formatted condition results.

Implemented by OpenAI Codex (GPT-5) acting as a coding agent.
@github-actions github-actions Bot added the bug Something isn't working label Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom Alert RESULT_CONDITIONS missing newlines

1 participant

0