Skip to content

Commit

Permalink
Make sure quotes are included in commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
KetanReddy committed Feb 3, 2022
1 parent 59292fb commit ceba7a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/version-file/__tests__/version-file.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ describe("Version File Write Operations", () => {
await hooks.version.promise({bump: SEMVER.patch})
expect(fs.readFileSync("VERSION", "utf-8")).toStrictEqual("1.0.1");
// check that the proper git operations were performed
expect(execPromise).toHaveBeenNthCalledWith(1, "git", ["commit", "-am", "Bump version to: v1.0.1 [skip ci]"]);
expect(execPromise).toHaveBeenNthCalledWith(1, "git", ["commit", "-am", "\"Bump version to: v1.0.1 [skip ci]\""]);
expect(execPromise).toHaveBeenNthCalledWith(2, "git", ["tag", "v1.0.1"]);
});
})
Expand Down
2 changes: 1 addition & 1 deletion plugins/version-file/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class VersionFilePlugin implements IPlugin {
if (newVersion){
// Seal versions via commit and tag
await writeNewVersion(auto, newVersion, this.versionFile)
await execPromise("git", ["commit", "-am", `Bump version to: v${newVersion} [skip ci]`]);
await execPromise("git", ["commit", "-am", `"Bump version to: v${newVersion} [skip ci]"`]);
await execPromise("git", [
"tag",
`v${newVersion}`
Expand Down

0 comments on commit ceba7a2

Please sign in to comment.