Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix title escaping for JSON (#71289)

github-automation-metabase5dd6f68c4665
diff --git a/.github/workflows/team-issues-slack-notification.yml b/.github/workflows/team-issues-slack-notification.yml
index 55231f2661d..d73a2b439a4 100644
--- a/.github/workflows/team-issues-slack-notification.yml
+++ b/.github/workflows/team-issues-slack-notification.yml
@@ -19,7 +19,7 @@ jobs:
id: vars
with:
script: |
- core.setOutput('issue_title', ${{ toJson(github.event.issue.title) }}.replaceAll(/"/g, '\\"'));
+ core.setOutput('issue_title', JSON.stringify(${{ toJson(github.event.issue.title) }} + '\n' + ${{ toJson(github.event.issue.html_url) }}));
- name: Extracting team name
id: team_name
run: |
@@ -39,7 +39,7 @@ jobs:
"type": "section",
"text": {
"type": "mrkdwn",
- "text": "${{ steps.vars.outputs.issue_title }}\n${{ github.event.issue.html_url }}"
+ "text": ${{ steps.vars.outputs.issue_title }}
}
}
]