@xcelera/cli 2.2.1 → 2.2.2

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/dist/action.js CHANGED
@@ -36538,24 +36538,21 @@ async function isGitRepository() {
36538
36538
  return simpleGit().checkIsRepo();
36539
36539
  }
36540
36540
  async function getCommit(hash = 'HEAD') {
36541
- // format: %H: commit hash, %s: subject, %an: author name, %ae: author email, %ai: author date
36541
+ // format: %H: commit hash, %s: subject, %an: author name, %ai: author date
36542
36542
  // Use null byte (%x00) as delimiter - cannot appear in commit data
36543
36543
  const commit = await simpleGit().show([
36544
36544
  hash,
36545
36545
  '--no-patch',
36546
- '--format=%H%x00%s%x00%an%x00%ae%x00%ai'
36546
+ '--format=%H%x00%s%x00%an%x00%ai'
36547
36547
  ]);
36548
- const [resolvedHash, message, author_name, author_email, date] = commit
36549
- .trim()
36550
- .split('\0');
36548
+ const [resolvedHash, message, author_name, date] = commit.trim().split('\0');
36551
36549
  if (!resolvedHash) {
36552
36550
  throw new Error(`No commit found for ${hash}`);
36553
36551
  }
36554
36552
  return {
36555
36553
  hash: resolvedHash,
36556
36554
  message: message,
36557
- author: author_name || 'Unknown',
36558
- email: author_email || '',
36555
+ author: author_name || 'Unknown Author',
36559
36556
  date: date ? new Date(date).toISOString() : new Date().toISOString()
36560
36557
  };
36561
36558
  }