git-coco 0.23.0 → 0.23.1

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.
@@ -47,7 +47,7 @@ import { pathToFileURL } from 'url';
47
47
  /**
48
48
  * Current build version from package.json
49
49
  */
50
- const BUILD_VERSION = "0.23.0";
50
+ const BUILD_VERSION = "0.23.1";
51
51
 
52
52
  const isInteractive = (config) => {
53
53
  return config?.mode === 'interactive' || !!config?.interactive;
@@ -11688,11 +11688,15 @@ IMPORTANT RULES:
11688
11688
  });
11689
11689
  // Construct the full commit message using the utility function
11690
11690
  const ticketId = extractTicketIdFromBranchName(branchName);
11691
+ // Debug: Log what commitMsg looks like before formatting
11692
+ logger.verbose(`commitMsg before formatting: ${JSON.stringify(commitMsg)}`, { color: 'blue' });
11691
11693
  const fullMessage = formatCommitMessage(commitMsg, {
11692
11694
  append: argv.append,
11693
11695
  ticketId: ticketId || undefined,
11694
11696
  appendTicket: argv.appendTicket,
11695
11697
  });
11698
+ // Debug: Log what fullMessage looks like after formatting
11699
+ logger.verbose(`fullMessage after formatting: ${typeof fullMessage === 'string' ? fullMessage : JSON.stringify(fullMessage)}`, { color: 'blue' });
11696
11700
  // If commitlint validation is needed and not skipped, validate the message
11697
11701
  if ((USE_CONVENTIONAL_COMMITS || hasCommitLintConfig) && !shouldSkipCommitlintValidation) {
11698
11702
  const { validateCommitMessage, CommitlintValidationError } = await Promise.resolve().then(function () { return commitlintValidator; });
package/dist/index.js CHANGED
@@ -69,7 +69,7 @@ var readline__namespace = /*#__PURE__*/_interopNamespaceDefault(readline);
69
69
  /**
70
70
  * Current build version from package.json
71
71
  */
72
- const BUILD_VERSION = "0.23.0";
72
+ const BUILD_VERSION = "0.23.1";
73
73
 
74
74
  const isInteractive = (config) => {
75
75
  return config?.mode === 'interactive' || !!config?.interactive;
@@ -11710,11 +11710,15 @@ IMPORTANT RULES:
11710
11710
  });
11711
11711
  // Construct the full commit message using the utility function
11712
11712
  const ticketId = extractTicketIdFromBranchName(branchName);
11713
+ // Debug: Log what commitMsg looks like before formatting
11714
+ logger.verbose(`commitMsg before formatting: ${JSON.stringify(commitMsg)}`, { color: 'blue' });
11713
11715
  const fullMessage = formatCommitMessage(commitMsg, {
11714
11716
  append: argv.append,
11715
11717
  ticketId: ticketId || undefined,
11716
11718
  appendTicket: argv.appendTicket,
11717
11719
  });
11720
+ // Debug: Log what fullMessage looks like after formatting
11721
+ logger.verbose(`fullMessage after formatting: ${typeof fullMessage === 'string' ? fullMessage : JSON.stringify(fullMessage)}`, { color: 'blue' });
11718
11722
  // If commitlint validation is needed and not skipped, validate the message
11719
11723
  if ((USE_CONVENTIONAL_COMMITS || hasCommitLintConfig) && !shouldSkipCommitlintValidation) {
11720
11724
  const { validateCommitMessage, CommitlintValidationError } = await Promise.resolve().then(function () { return commitlintValidator; });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-coco",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "description": "zero-effort git commits with coco.",
5
5
  "author": "gfargo <ghfargo@gmail.com>",
6
6
  "license": "MIT",