Skip to content

Commit 81ba0b9

Browse files
Do not use unsupported folded chomping multiline YAML block syntax (#3702)
1 parent 8c064fd commit 81ba0b9

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/pr_limit_reminders.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,11 @@ jobs:
4242
id: slack
4343
uses: slackapi/slack-github-action@v1.24.0
4444
with:
45-
# The JSON below looks malformed, with an invalid multiline string, but YAML's `>`
46-
# construct replaces linebreaks with a space, so the multiline string below will end
47-
# up as a single-line string. The payload will be `{ "user": "...", "message": "..." }
48-
payload: >
45+
# Note: We cannot use the YAML folded chomping block syntax here (`>`) because
46+
# GitHub Actions does not support it (they only support a subset of YAML):
47+
# https://github.com/actions/runner/issues/418#issuecomment-612928525
48+
payload: |
4949
{
5050
"user": "${{ env.slack_id }}",
51-
"message":
52-
"Hi, Opener! \n
53-
You currently have ${{ env.pr_count }} Pull Request(s) open with requested
54-
reviews (totalling ${{ env.required_review_count }} required reviews). \n
55-
To help ease the review burden, increase review velocity for older PRs, and
56-
improve the equitable distribution of project maintenance tasks across the team,
57-
please consider reviewing this list of ways to contribute instead of working on
58-
new code contributions: \n
59-
https://docs.openverse.org/meta/maintainer_tasks.html"
51+
"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"
6052
}

0 commit comments

Comments
 (0)