Skip to content

Commit

Permalink
fix gro changeset commit message quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanatkn committed Jan 1, 2024
1 parent 0f53451 commit 88aaa95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/loud-owls-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@grogarden/gro": patch
---

fix `gro changeset` commit message quotes
2 changes: 1 addition & 1 deletion src/lib/changeset.task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const task: Task<Args> = {
const changeset_adder = await create_changeset_adder(package_json.name, dir, message, bump);
await spawn_cli('changeset', ['add', '--empty']);
await changeset_adder();
await spawn('git', ['commit', '-m', '"' + message.replaceAll('"', '\\"') + '"']);
await spawn('git', ['commit', '-m', message]);
await git_push_to_create(origin);
} else {
await spawn_cli('changeset');
Expand Down

0 comments on commit 88aaa95

Please sign in to comment.