Skip to content

Commit

Permalink
feat: change commit messages in accordance with Conventional Commits
Browse files Browse the repository at this point in the history
  • Loading branch information
b41ex committed Jan 14, 2025
1 parent 9952642 commit 77155f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bin/feature-finish.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function changeLernaVersion(version) {

function commitAndPush(branch) {
return new Promise((resolve) => {
git.raw(["commit", "-a", "--no-edit", "-m Merge from " + branch + " to develop"], (err) => {
git.raw(["commit", "-a", "--no-edit", "-m chore: merge from " + branch + " to develop"], (err) => {
handleError(err);
console.log("Commit!")
}).push("origin", "develop", (err) => {
Expand Down
4 changes: 2 additions & 2 deletions bin/feature-start.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ git
let execPromise;
if (isLernaProject) {
console.log("Update versions for lerna project");
execPromise = executeCommand(`lerna version ${featureVersion} --message \"Update version to ${featureVersion}\" --no-push --yes`);
execPromise = executeCommand(`lerna version ${featureVersion} --message \"chore: update version to ${featureVersion}\" --no-push --yes`);
} else {
console.log("Update versions for project");
execPromise = executeCommand("npm version -m \"Update version to %s\" " + featureVersion);
execPromise = executeCommand("npm version -m \"chore: update version to %s\" " + featureVersion);
}
execPromise.then(() => {
git //Push
Expand Down
4 changes: 2 additions & 2 deletions bin/release-finish.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function changeLernaProjectVersion(version, branchName) {

function createAndPushTag(version) {
return new Promise(resolve => {
git.raw(["tag", "-a", version, "-m Release :" + version], (err) => {
git.raw(["tag", "-a", version, "-m chore: release :" + version], (err) => {
handleError(err);
console.log("Git tag. Version: " + version);
}).raw(["push", "origin", version], (err) => {
Expand All @@ -128,7 +128,7 @@ function createAndPushTag(version) {

function commit(message) {
return new Promise((resolve) => {
git.raw(["commit", "-a", "--no-edit", "-m Release: " + message], (err) => {
git.raw(["commit", "-a", "--no-edit", "-m chore: release: " + message], (err) => {
handleError(err);
console.log("Commit!");
resolve();
Expand Down
2 changes: 1 addition & 1 deletion bin/release-start.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function changeLernaProjectVersion(version) {

function commitAndPushRelease(releaseVersion) {
return new Promise((resolve) => {
git.raw(["commit", "-a", "--no-edit", "-m Release start. Version: " + releaseVersion], (err) => {
git.raw(["commit", "-a", "--no-edit", "-m chore: release start, version: " + releaseVersion], (err) => {
handleError(err);
console.log("Commit!")
}).raw(["push", "--set-upstream", "origin", "release"], (err) => {
Expand Down

0 comments on commit 77155f8

Please sign in to comment.