You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix YAML syntax error in community_pr_test workflow
Multi-line shell strings with unindented content broke the YAML block
scalar. Use printf to build PR body strings within proper indentation.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .github/workflows/community_pr_test.yml
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -91,15 +91,16 @@ jobs:
91
91
exit 0
92
92
fi
93
93
94
+
PR_BODY=$(printf '%s\n\n%s\n%s\n%s\n\n%s' \
95
+
"Automated test PR to run CI on behalf of community PR #${COMMUNITY_PR_NUMBER}." \
96
+
"**Original PR:** ${COMMUNITY_PR_URL}" \
97
+
"**Author:** @${COMMUNITY_PR_AUTHOR}" \
98
+
"**Fork:** \`${COMMUNITY_PR_FORK}\`" \
99
+
"> **Note:** This PR was created automatically when the \`ok-to-test\` label was applied. Do not merge — close it once tests complete and review the original PR instead.")
100
+
94
101
gh pr create \
95
102
--title "[Test] Community PR #${COMMUNITY_PR_NUMBER}: ${COMMUNITY_PR_TITLE}" \
96
-
--body "Automated test PR to run CI on behalf of community PR #${COMMUNITY_PR_NUMBER}.
97
-
98
-
**Original PR:** ${COMMUNITY_PR_URL}
99
-
**Author:** @${COMMUNITY_PR_AUTHOR}
100
-
**Fork:** \`${COMMUNITY_PR_FORK}\`
101
-
102
-
> **Note:** This PR was created automatically when the \`ok-to-test\` label was applied. Do not merge — close it once tests complete and review the original PR instead." \
103
+
--body "${PR_BODY}" \
103
104
--base main \
104
105
--head "${BRANCH}"
105
106
@@ -118,8 +119,9 @@ jobs:
118
119
# Extract the original PR number from the branch name (community-pr-test-<N>)
0 commit comments