Skip to content

Commit 89da217

Browse files
committed
Fix YAML syntax error in failure comment - use single quotes instead of heredoc
1 parent 87e69a0 commit 89da217

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/issue_comp_link-issue-to-pr.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,7 @@ jobs:
265265
pr_url="${{ inputs.pr_url }}"
266266
pr_number=$(echo "$pr_url" | grep -o '[0-9]*$')
267267
268-
comment_body=$(cat <<'EOF'
269-
## ❌ Issue Linking Required
268+
comment_body='## ❌ Issue Linking Required
270269
271270
This PR could not be linked to an issue. **All PRs must be linked to an issue** for tracking purposes.
272271

@@ -277,7 +276,7 @@ This PR could not be linked to an issue. **All PRs must be linked to an issue**
277276
2. Click "Link issue" and select an existing issue
278277

279278
**Option 2: Add keyword to PR body**
280-
Edit this PR's description and add one of these lines:
279+
Edit this PR description and add one of these lines:
281280
- `This PR fixes: #123`
282281
- `This PR closes: #123`
283282
- `This PR resolves: #123`
@@ -292,9 +291,7 @@ Create a new branch with one of these patterns:
292291
Issue linking ensures proper tracking, documentation, and helps maintain project history. It connects your code changes to the problem they solve.
293292

294293
---
295-
*This comment was automatically generated by the issue linking workflow*
296-
EOF
297-
)
294+
*This comment was automatically generated by the issue linking workflow*'
298295

299296
curl -X POST \
300297
-H "Accept: application/vnd.github+json" \

0 commit comments

Comments
 (0)