Skip to content

Fix the tracking-issue workflow running PR text as shell - #594

Merged
rtio merged 1 commit into
trunkfrom
fix/tracking-issue-workflow-pr-text
Nov 13, 2026
Merged

rtio merged 1 commit into
trunkfrom
fix/tracking-issue-workflow-pr-text

Conversation

@rtio

@rtio rtio commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

All Submissions:

  • Does your code follow the WooCommerce Sniffs variant of WordPress coding standards?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully run tests with your changes locally?
  • Will this change require new documentation or changes to existing documentation?

Changes proposed in this Pull Request:

The "Create Issue from Unlinked PR" workflow pasted the pull request title and description into its shell script, so the shell parsed that text as code. Backticks and $( ) in it ran on the runner, and a description with a quoted phrase containing parentheses failed the check with a syntax error. The step now reads both from the event payload with jq, as it already does for the branch name; link detection is unchanged.

Steps to test the changes in this Pull Request:

  1. Check that the create-gh-issue check passes on this pull request. This description has a quoted phrase with parentheses, "E2E tests (@cashapp)", which failed the check before.
  2. Check that the workflow linked a tracking issue to this pull request.

Changelog entry

Dev - Fix the tracking-issue workflow failing on pull request text that contains quotes or backticks.

🤖 Generated with Claude Code

Closes #595

The "Create Issue from Unlinked PR" workflow checks the pull request's
title and description for a linked issue. To do that it pasted both into
its shell script with `${{ github.event.pull_request.* }}` expressions.

Expressions are expanded before the shell parses the script, so the text
became part of the script. Backticks and `$( )` in a title or description
were executed on the runner, and ordinary text could break the step: a
description containing a double-quoted phrase with parentheses failed the
check with "syntax error near unexpected token `('".

Read both values from the event payload with jq, the way the step already
reads the branch name, so they are only ever data. The link detection is
unchanged, and an empty description still counts as unlinked. body.txt and
title.txt are no longer written; nothing else read them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

This is linked to GitHub issue #595.

@github-actions

Copy link
Copy Markdown

Test the build

WordPress Playground - runs in your browser

ℹ️ Neither can connect to Square: signing in to Square has to send you back to the site, and a site that runs in your browser tab has no public address to come back to. Without a connection the store cannot take payments, sync products or receive webhooks, so the previews show what a merchant sees before connecting. Do not enter Square access tokens or other credentials in a preview. The links stop working 14 days after the last build.


Build info:

  • Latest commit: 6832a0a
  • Build time: 2026-11-13 11:33:53 UTC

Note: the build is updated when a new commit is pushed to this PR.

@github-actions

Copy link
Copy Markdown

✅ WordPress Plugin Check Report

✅ Status: Passed

📊 Report

All checks passed! No errors or warnings found.


🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check

@rtio
rtio marked this pull request as ready for review November 13, 2026 12:16
@rtio
rtio merged commit 47d618e into trunk Nov 13, 2026
13 checks passed
@rtio
rtio deleted the fix/tracking-issue-workflow-pr-text branch November 13, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tracking Issue for PR #594: Fix the tracking-issue workflow running PR text as shell

1 participant