@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 +7 -0
- package/README.md +1 -1
- package/bin/git.js +13 -5
- package/package.json +1 -1
- package/src/cli/index.js +13 -5
- package/src/index.js +13 -5
package/CHANGELOG.md
CHANGED
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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|