@storm-software/git-tools 2.38.2 → 2.38.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 2.38.3 (2024-07-31)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ - **git-tools:** Resolved issue when `commitlint` is called without a `message` parameter ([624b24bc](https://github.com/storm-software/storm-ops/commit/624b24bc))
7
+
1
8
  ## 2.38.2 (2024-07-31)
2
9
 
3
10
 
package/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-2.38.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-2.38.2-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/bin/git.js CHANGED
@@ -232265,21 +232265,29 @@ var runCommitLint = async (commitMessageArg) => {
232265
232265
  if (upstreamRemote) {
232266
232266
  const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
232267
232267
  if (!upstreamRemoteIdentifier) {
232268
- throw new Error(
232269
- `No upstream remote found for ${config2.name}.git. Skipping comparison.`
232268
+ writeWarning(
232269
+ `No upstream remote found for ${config2.name}.git. Skipping comparison.`,
232270
+ config2
232270
232271
  );
232272
+ return;
232271
232273
  }
232272
232274
  writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
232273
232275
  const currentBranch = childProcess2.execSync("git branch --show-current").toString().trim();
232274
232276
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
232275
232277
  } else {
232276
- throw new Error(
232277
- `No upstream remote found for ${config2.name}.git. Skipping comparison against upstream main.`
232278
+ writeWarning(
232279
+ `No upstream remote found for ${config2.name}.git. Skipping comparison against upstream main.`,
232280
+ config2
232278
232281
  );
232282
+ return;
232279
232283
  }
232280
232284
  commitMessage = childProcess2.execSync(gitLogCmd).toString().trim();
232281
232285
  if (!commitMessage) {
232282
- throw new Error("No commits found. Skipping commit message validation.");
232286
+ writeWarning(
232287
+ "No commits found. Skipping commit message validation.",
232288
+ config2
232289
+ );
232290
+ return;
232283
232291
  }
232284
232292
  }
232285
232293
  const allowedTypes = Object.keys(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "2.38.2",
3
+ "version": "2.38.3",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing various git tools used in Storm workspaces.",
6
6
  "repository": {
package/src/cli/index.js CHANGED
@@ -228055,21 +228055,29 @@ var runCommitLint = async (commitMessageArg) => {
228055
228055
  if (upstreamRemote) {
228056
228056
  const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
228057
228057
  if (!upstreamRemoteIdentifier) {
228058
- throw new Error(
228059
- `No upstream remote found for ${config2.name}.git. Skipping comparison.`
228058
+ writeWarning(
228059
+ `No upstream remote found for ${config2.name}.git. Skipping comparison.`,
228060
+ config2
228060
228061
  );
228062
+ return;
228061
228063
  }
228062
228064
  writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
228063
228065
  const currentBranch = childProcess2.execSync("git branch --show-current").toString().trim();
228064
228066
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
228065
228067
  } else {
228066
- throw new Error(
228067
- `No upstream remote found for ${config2.name}.git. Skipping comparison against upstream main.`
228068
+ writeWarning(
228069
+ `No upstream remote found for ${config2.name}.git. Skipping comparison against upstream main.`,
228070
+ config2
228068
228071
  );
228072
+ return;
228069
228073
  }
228070
228074
  commitMessage = childProcess2.execSync(gitLogCmd).toString().trim();
228071
228075
  if (!commitMessage) {
228072
- throw new Error("No commits found. Skipping commit message validation.");
228076
+ writeWarning(
228077
+ "No commits found. Skipping commit message validation.",
228078
+ config2
228079
+ );
228080
+ return;
228073
228081
  }
228074
228082
  }
228075
228083
  const allowedTypes = Object.keys(
package/src/index.js CHANGED
@@ -228157,21 +228157,29 @@ var runCommitLint = async (commitMessageArg) => {
228157
228157
  if (upstreamRemote) {
228158
228158
  const upstreamRemoteIdentifier = upstreamRemote.split(" ")[0]?.trim();
228159
228159
  if (!upstreamRemoteIdentifier) {
228160
- throw new Error(
228161
- `No upstream remote found for ${config2.name}.git. Skipping comparison.`
228160
+ writeWarning(
228161
+ `No upstream remote found for ${config2.name}.git. Skipping comparison.`,
228162
+ config2
228162
228163
  );
228164
+ return;
228163
228165
  }
228164
228166
  writeDebug(`Comparing against remote ${upstreamRemoteIdentifier}`);
228165
228167
  const currentBranch = childProcess2.execSync("git branch --show-current").toString().trim();
228166
228168
  gitLogCmd = gitLogCmd + ` ${currentBranch} ^${upstreamRemoteIdentifier}/main`;
228167
228169
  } else {
228168
- throw new Error(
228169
- `No upstream remote found for ${config2.name}.git. Skipping comparison against upstream main.`
228170
+ writeWarning(
228171
+ `No upstream remote found for ${config2.name}.git. Skipping comparison against upstream main.`,
228172
+ config2
228170
228173
  );
228174
+ return;
228171
228175
  }
228172
228176
  commitMessage = childProcess2.execSync(gitLogCmd).toString().trim();
228173
228177
  if (!commitMessage) {
228174
- throw new Error("No commits found. Skipping commit message validation.");
228178
+ writeWarning(
228179
+ "No commits found. Skipping commit message validation.",
228180
+ config2
228181
+ );
228182
+ return;
228175
228183
  }
228176
228184
  }
228177
228185
  const allowedTypes = Object.keys(