Skip to content

Conversation

hello-ashleyintech
Copy link
Contributor

Summary

With testing #205, in the PR #206 to make sure the integration tests run, it was determined that the toJSON() in the payload integration test doesn't seem to work to parse the body of a given PR if it contains characters that need to be escaped within a string (example error output can be found in this test run).

However, there is a workaround for this in which bash automatically escapes invalid characters in env variables (see this issue for more info). This PR adds in this workaround so that all future PRs will successfully parse as JSON, regardless of the contents of the PR description. After adding this testing update in the test integration PR, the payload integration test ran successfully.

Requirements (place an x in each [ ])

@hello-ashleyintech hello-ashleyintech merged commit 9df6813 into main May 31, 2023
@hello-ashleyintech hello-ashleyintech deleted the ah-update-payload-test branch May 31, 2023 16:07
PhuongTMR pushed a commit to PhuongTMR/slack-github-action that referenced this pull request Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants