Skip to content

Commit 7355b7d

Browse files
desrosjclaude
andcommitted
Build/Test Tools: Reword the sync PR title/summary and fix title escaping.
- Update the pull request titles and job-summary headings. - Escape the backticks in the PR titles so the shell treats them as literal text instead of command substitution (which blanked the code references). - Restore the blank lines around __CHANGELOG__ in the template so the release changelog renders as Markdown inside the <details> block. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 2a7d061 commit 7355b7d

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

‎.github/workflows/gutenberg-sync.yml‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
{
9898
echo "TAG=${TAG}"
9999
echo "RELEASE_URL=${RELEASE_URL}"
100-
echo "PR_TITLE=Gutenberg Sync: Update trunk to ${TAG}"
100+
echo "PR_TITLE=Bump \`gutenberg.sha\` to version ${TAG}"
101101
} >> "$GITHUB_ENV"
102102
103103
- name: Checkout Gutenberg at the release (trunk only)
@@ -143,7 +143,7 @@ jobs:
143143
OLD_SHA=$(jq -r '.gutenberg.sha' package.json)
144144
{
145145
echo "OLD_SHA=${OLD_SHA}"
146-
echo "PR_TITLE=Gutenberg Sync: Update ${BASE_BRANCH} to latest wp/${BASE_BRANCH}"
146+
echo "PR_TITLE=WP ${BASE_BRANCH}: bump \`gutenberg.sha\` to the latest from \`wp/${BASE_BRANCH}\`"
147147
if [ "${NEW_SHA}" != "${OLD_SHA}" ]; then echo "PROCEED=true"; else echo "PROCEED=false"; fi
148148
} >> "$GITHUB_ENV"
149149
@@ -360,15 +360,17 @@ jobs:
360360
{
361361
echo "## Gutenberg Sync"
362362
echo ""
363-
echo "Pushed \`${HEAD_BRANCH}\` to \`${FORK_OWNER}\`. [Open a pull request](${compare_url}) against \`${UPSTREAM_REPO}\`, then copy the title and body below into it."
363+
echo "Pushed \`${HEAD_BRANCH}\` to \`${FORK_OWNER}\`."
364364
echo ""
365-
echo "### Title"
365+
echo "[Open a pull request](${compare_url}) against \`${UPSTREAM_REPO}\`, then copy the title and body below into it."
366+
echo ""
367+
echo "### PR Title"
366368
echo ""
367369
echo '```'
368370
echo "${PR_TITLE}"
369371
echo '```'
370372
echo ""
371-
echo "### Body"
373+
echo "### PR Body"
372374
echo ""
373375
# A four-backtick fence so a body containing triple-backtick code blocks copies intact.
374376
echo '````markdown'

0 commit comments

Comments
 (0)