fails when ${nextRelease.notes} contains quotes
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, shell
Research direction
Start with the @semantic-release/exec publishCmd configuration and the escapedCommand output shown in the issue, then reproduce the failure using release notes containing both single and double quotes. The work is done when the generated exec command runs successfully without an unterminated quoted string for those notes.
Written by the indexing model from the issue text.
Description
I'm trying to pass ${nextRelease.notes} to an exec step but it fails if the notes contains quotes with Unterminated quoted string.
For exemple, I have a commit with message
feat(test): test"'
with s "' pecial characters
The espaceCommand seems to have single quote escaped but not quotes.
escapedCommand: `'./templates/azdo/summary.sh "## [1.1.0](https://dev.azure.com/_git/containerapps-sample/branchCompare?baseVersion=GTrelease/1.0.1&targetVersion=GTrelease/1.1.0&_a=commits) (2025-06-07)\\n\\n\\n### Features\\n\\n* test ([e21ff0f]([https://dev.azure.com/_git/containerapps-sample/commit/e21ff0f4bc00a00d2e87d10cdbb966db176c2ed8))\\n*](https://dev.azure.com/_git/containerapps-sample/commit/e21ff0f4bc00a00d2e87d10cdbb966db176c2ed8))//n*) **test:** test"'\\'' ([1e411df]([https://dev.azure.com/_git/containerapps-sample/commit/1e411df9eb41669aab917f2c9b2b9ea48b9e61f0))\\n\\n"\\n'`,](https://dev.azure.com/_git/containerapps-sample/commit/1e411df9eb41669aab917f2c9b2b9ea48b9e61f0))//n//n%22//n'%60,)
The plugin is configured with this yaml fragment
- - '@semantic-release/exec'
- publishCmd: |
./summary.sh "${nextRelease.notes}"
- Dominant language
- JavaScript
- Stars
- 164
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from semantic-release/exec
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
semantic-release/exec#535 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
semantic-release/exec#480 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
semantic-release/exec#413 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
semantic-release/exec#412 · 1 comment ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
semantic-release/exec#410 ·
All issues in semantic-release/exec
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
curation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#186 ·
-
light
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
aemdemos/patients-stryker#253 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
clerk/javascript#9852 ·