@eldrforge/kodrdriv 1.2.124 → 1.2.126
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/README.md +12 -0
- package/dist/arguments.js +41 -5
- package/dist/arguments.js.map +1 -1
- package/dist/commands/commit.js +320 -75
- package/dist/commands/commit.js.map +1 -1
- package/dist/commands/publish.js +6 -2
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/release.js +230 -10
- package/dist/commands/release.js.map +1 -1
- package/dist/commands/review.js +13 -2
- package/dist/commands/review.js.map +1 -1
- package/dist/commands/tree.js +184 -16
- package/dist/commands/tree.js.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/logging.js +53 -5
- package/dist/logging.js.map +1 -1
- package/dist/util/stopContext.js +146 -0
- package/dist/util/stopContext.js.map +1 -0
- package/dist/util/storageAdapter.js +3 -0
- package/dist/util/storageAdapter.js.map +1 -1
- package/package.json +2 -2
package/dist/commands/publish.js
CHANGED
|
@@ -10,6 +10,7 @@ import { calculateBranchDependentVersion, checkIfTagExists, confirmVersionIntera
|
|
|
10
10
|
import { DEFAULT_OUTPUT_DIRECTORY, KODRDRIV_DEFAULTS } from '../constants.js';
|
|
11
11
|
import fs from 'fs/promises';
|
|
12
12
|
import { runGitWithLock } from '../util/gitMutex.js';
|
|
13
|
+
import { filterContent } from '../util/stopContext.js';
|
|
13
14
|
|
|
14
15
|
const scanNpmrcForEnvVars = async (storage)=>{
|
|
15
16
|
const logger = getLogger();
|
|
@@ -944,8 +945,11 @@ const execute = async (runConfig)=>{
|
|
|
944
945
|
labels: []
|
|
945
946
|
};
|
|
946
947
|
} else {
|
|
947
|
-
const { stdout:
|
|
948
|
-
|
|
948
|
+
const { stdout: rawCommitTitle } = await run('git log -1 --pretty=%B');
|
|
949
|
+
// Apply stop-context filtering to PR title and body
|
|
950
|
+
const commitTitle = filterContent(rawCommitTitle, runConfig.stopContext).filtered;
|
|
951
|
+
const prBody = filterContent('Automated release PR.', runConfig.stopContext).filtered;
|
|
952
|
+
pr = await GitHub.createPullRequest(commitTitle, prBody, branchName, targetBranch);
|
|
949
953
|
if (!pr) {
|
|
950
954
|
throw new Error('Failed to create pull request.');
|
|
951
955
|
}
|