Skip to content

Fix Slack notification workflow payload parsing error #235

@jariy17

Description

@jariy17

Summary

The Slack issue notification workflow fails when issue bodies contain double quotes, causing a SlackError: Invalid input! Failed to parse contents of the provided payload error.

Problem

In .github/workflows/slack-issue-notification.yml line 21, the issue body is wrapped in double quotes:

issue_body: "${{ github.event.issue.body }}"

When the issue body contains double quotes (e.g., deprecation messages like "save_turn() is deprecated..."), it breaks the YAML payload parsing.

Solution

Use toJSON() to properly escape the content:

issue_body: ${{ toJSON(github.event.issue.body) }}

Location

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions