Skip to content

A few enhancements, a deprecation warning, and a bugfix

Latest
Compare
Choose a tag to compare
@SebastiaanZ SebastiaanZ released this 16 Dec 12:43
67f67a6

Enhancements

  • The action will now use values taken from the github context object as defaults for workflow-related arguments. This means that the information of the current workflow is automatically used to generate the embed, unless you specify a different value explicitly. If you want to send an embed from a workflow_run-triggered workflow, you can still provide values using github.event.workflow_run.* as usual.

  • The README now includes a recipe for using a workflow_run-triggered workflow to send a status embed for PR workflows.

Deprecation warning

  • The pull_request_payload argument will be removed in v1.0.0, as it turned out to be tricky to handle escape sequences well while passing the JSON-serialized payload as a command line argument to the Python application running in the docker container. As I haven't found a solution that I think is robust enough to include in the first major release, I'm deprecating that argument and will remove it in v1.

Bug fix

  • To make the now deprecated pull_request_payload argument work until it's removed, I've added a small bugfix to mitigate the issue with having too few backslashes in certain escape sequences (mostly sequences trying to escape a double quote). The fix is not that robust and may fail with some payloads, but I haven't found a better solution yet.