Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dataJsonString to custom provider format handler. #225

Merged
merged 12 commits into from
Mar 11, 2023

Conversation

vy-bot
Copy link
Contributor

@vy-bot vy-bot commented Mar 7, 2023

Added dataJsonString to custom format - it treats data ans json string that needs to be escaped.

cyicz123 and others added 6 commits November 3, 2022 23:42
change example `notify -version` to `notify -verbose`. It's a small typo.
Added dataJsonString to custom format - it treats data ans json string that needs to be escaped.
Added support for sprig and json input when using custom_sprig option
Better error info
Added an examples for dataJsonString and custom_sprig
@ehsandeep ehsandeep changed the base branch from master to dev March 9, 2023 14:41
@ehsandeep ehsandeep requested a review from tarunKoyalwar March 9, 2023 14:41
Copy link
Member

@tarunKoyalwar tarunKoyalwar left a comment

Choose a reason for hiding this comment

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

@ehsandeep

PR Summary

  • adds dataJsonFormat custom format which marshals given msg to json and injects json string .example
custom:
  - id: webhookJson
    custom_webhook_url: http://host/api/webhook
    custom_method: GET
    custom_format: '{"text":{{dataJsonString}} }'
    custom_headers:
      Content-Type: application/json
      X-Api-Key: XXXXX

@tarunKoyalwar tarunKoyalwar requested a review from Mzack9999 March 10, 2023 19:53
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@Mzack9999 Mzack9999 left a comment

Choose a reason for hiding this comment

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

lgtm - @tarunKoyalwar, the original issue was kept on hold as the change impacted the existing default behavior of the engine.

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.

5 participants