@anolilab/multi-semantic-release 2.0.8 → 2.0.9
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 +6 -0
- package/lib/get-commits-filtered.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## @anolilab/multi-semantic-release [2.0.9](https://github.com/anolilab/semantic-release/compare/@anolilab/multi-semantic-release@2.0.8...@anolilab/multi-semantic-release@2.0.9) (2025-11-10)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* run commit filtering from git root ([#230](https://github.com/anolilab/semantic-release/issues/230)) ([ee0b3d8](https://github.com/anolilab/semantic-release/commit/ee0b3d8211a364eecfa0fd29bcf1947c1e663345))
|
|
6
|
+
|
|
1
7
|
## @anolilab/multi-semantic-release [2.0.8](https://github.com/anolilab/semantic-release/compare/@anolilab/multi-semantic-release@2.0.7...@anolilab/multi-semantic-release@2.0.8) (2025-11-01)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
|
@@ -48,6 +48,7 @@ async function getCommitsFiltered(cwd, direction, lastRelease, nextRelease, firs
|
|
|
48
48
|
|
|
49
49
|
// Get top-level Git directory as it might be higher up the tree than cwd.
|
|
50
50
|
const root = await execa("git", ["rev-parse", "--show-toplevel"], { cwd });
|
|
51
|
+
const gitRoot = cleanPath(root.stdout);
|
|
51
52
|
|
|
52
53
|
// Add correct fields to gitLogParser.
|
|
53
54
|
Object.assign(gitLogParser.fields, {
|
|
@@ -58,11 +59,11 @@ async function getCommitsFiltered(cwd, direction, lastRelease, nextRelease, firs
|
|
|
58
59
|
});
|
|
59
60
|
|
|
60
61
|
// Use git-log-parser to get the commits.
|
|
61
|
-
const relpath = relative(
|
|
62
|
+
const relpath = relative(gitRoot, direction);
|
|
62
63
|
const firstParentBranchFilter = firstParentBranch ? ["--first-parent", firstParentBranch] : [];
|
|
63
64
|
const range = (lastRelease ? `${lastRelease}..` : "") + (nextRelease || "HEAD");
|
|
64
65
|
const gitLogFilterQuery = [...firstParentBranchFilter, range, "--", relpath];
|
|
65
|
-
const stream = gitLogParser.parse({ _: gitLogFilterQuery }, { cwd, env: process.env });
|
|
66
|
+
const stream = gitLogParser.parse({ _: gitLogFilterQuery }, { cwd: gitRoot, env: process.env });
|
|
66
67
|
|
|
67
68
|
const commits = await streamToArray(stream);
|
|
68
69
|
|