diff --git a/.github/workflows/pr_limit_reminders.yml b/.github/workflows/pr_limit_reminders.yml index af4e700249c..4ef4dadb826 100644 --- a/.github/workflows/pr_limit_reminders.yml +++ b/.github/workflows/pr_limit_reminders.yml @@ -42,19 +42,11 @@ jobs: id: slack uses: slackapi/slack-github-action@v1.24.0 with: - # The JSON below looks malformed, with an invalid multiline string, but YAML's `>` - # construct replaces linebreaks with a space, so the multiline string below will end - # up as a single-line string. The payload will be `{ "user": "...", "message": "..." } - payload: > + # Note: We cannot use the YAML folded chomping block syntax here (`>`) because + # GitHub Actions does not support it (they only support a subset of YAML): + # https://github.com/actions/runner/issues/418#issuecomment-612928525 + payload: | { "user": "${{ env.slack_id }}", - "message": - "Hi, Opener! \n - You currently have ${{ env.pr_count }} Pull Request(s) open with requested - reviews (totalling ${{ env.required_review_count }} required reviews). \n - To help ease the review burden, increase review velocity for older PRs, and - improve the equitable distribution of project maintenance tasks across the team, - please consider reviewing this list of ways to contribute instead of working on - new code contributions: \n - https://docs.openverse.org/meta/maintainer_tasks.html" + "message": "Hi, Opener! \n You currently have ${{ env.pr_count }} Pull Request(s) open with requested reviews (totalling ${{ env.required_review_count }} required reviews). \n To help ease the review burden, increase review velocity for older PRs, and improve the equitable distribution of project maintenance tasks across the team, please consider reviewing this list of ways to contribute instead of working on new code contributions: \n https://docs.openverse.org/meta/maintainer_tasks.html" }