@sentry/craft 2.14.0 → 2.14.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.
package/dist/craft CHANGED
@@ -61802,7 +61802,7 @@ var require_package = __commonJS({
61802
61802
  "package.json"(exports2, module2) {
61803
61803
  module2.exports = {
61804
61804
  name: "@sentry/craft",
61805
- version: "2.14.0",
61805
+ version: "2.14.1",
61806
61806
  description: "The universal sentry workflow CLI",
61807
61807
  main: "dist/craft",
61808
61808
  repository: "https://github.com/getsentry/craft",
@@ -61968,7 +61968,7 @@ function getPackage() {
61968
61968
  }
61969
61969
  function getPackageVersion() {
61970
61970
  const { version: version2 } = getPackage();
61971
- const buildInfo = "8c1d5d40c99e031f7e2340f71c2c7197d9cfdb31";
61971
+ const buildInfo = "114a419301b8f047629567f8cdf2c1d902581ce7";
61972
61972
  return buildInfo ? `${version2} (${buildInfo})` : version2;
61973
61973
  }
61974
61974
  function semVerToString(s3) {
@@ -158564,7 +158564,7 @@ async function generateChangesetFromGitImpl(git, rev, maxLeftovers) {
158564
158564
  if (shouldExcludePR(labels, author, releaseConfig)) {
158565
158565
  continue;
158566
158566
  }
158567
- const titleForMatching = githubCommit?.prTitle ?? gitCommit.title;
158567
+ const titleForMatching = (githubCommit?.prTitle ?? gitCommit.title).trim();
158568
158568
  const matchedCategory = matchCommitToCategory(
158569
158569
  labels,
158570
158570
  author,
@@ -158610,7 +158610,7 @@ async function generateChangesetFromGitImpl(git, rev, maxLeftovers) {
158610
158610
  };
158611
158611
  categories.set(categoryTitle, category);
158612
158612
  }
158613
- const prTitle = commit.prTitle ?? commit.title;
158613
+ const prTitle = (commit.prTitle ?? commit.title).trim();
158614
158614
  const scope = extractScope(prTitle);
158615
158615
  let scopeGroup = category.scopeGroups.get(scope);
158616
158616
  if (!scopeGroup) {
@@ -158677,14 +158677,8 @@ async function generateChangesetFromGitImpl(git, rev, maxLeftovers) {
158677
158677
  const hasScopeHeaders = [...category.scopeGroups.entries()].some(
158678
158678
  ([s3, entries]) => s3 !== null && entries.length > 1
158679
158679
  );
158680
+ const entriesWithoutHeaders = [];
158680
158681
  for (const [scope, prs] of sortedScopes) {
158681
- if (scopeGroupingEnabled && scope !== null && prs.length > 1) {
158682
- changelogSections.push(
158683
- markdownHeader(SCOPE_HEADER_LEVEL, formatScopeTitle(scope))
158684
- );
158685
- } else if (scopeGroupingEnabled && scope === null && hasScopeHeaders) {
158686
- changelogSections.push(markdownHeader(SCOPE_HEADER_LEVEL, "Other"));
158687
- }
158688
158682
  const prEntries = prs.map(
158689
158683
  (pr) => formatChangelogEntry({
158690
158684
  title: pr.title,
@@ -158695,7 +158689,23 @@ async function generateChangesetFromGitImpl(git, rev, maxLeftovers) {
158695
158689
  repoUrl
158696
158690
  })
158697
158691
  );
158698
- changelogSections.push(prEntries.join("\n"));
158692
+ let scopeHeader = null;
158693
+ if (scopeGroupingEnabled) {
158694
+ if (scope !== null && prs.length > 1) {
158695
+ scopeHeader = formatScopeTitle(scope);
158696
+ } else if (scope === null && hasScopeHeaders) {
158697
+ scopeHeader = "Other";
158698
+ }
158699
+ }
158700
+ if (scopeHeader) {
158701
+ changelogSections.push(markdownHeader(SCOPE_HEADER_LEVEL, scopeHeader));
158702
+ changelogSections.push(prEntries.join("\n"));
158703
+ } else {
158704
+ entriesWithoutHeaders.push(...prEntries);
158705
+ }
158706
+ }
158707
+ if (entriesWithoutHeaders.length > 0) {
158708
+ changelogSections.push(entriesWithoutHeaders.join("\n"));
158699
158709
  }
158700
158710
  }
158701
158711
  const nLeftovers = leftovers.length;
@@ -158706,7 +158716,7 @@ async function generateChangesetFromGitImpl(git, rev, maxLeftovers) {
158706
158716
  changelogSections.push(
158707
158717
  leftovers.slice(0, maxLeftovers).map(
158708
158718
  (commit) => formatChangelogEntry({
158709
- title: commit.prTitle ?? commit.title,
158719
+ title: (commit.prTitle ?? commit.title).trim(),
158710
158720
  author: commit.author,
158711
158721
  prNumber: commit.pr ?? void 0,
158712
158722
  hash: commit.hash,
@@ -158854,7 +158864,7 @@ var init_changelog = __esm({
158854
158864
  },
158855
158865
  {
158856
158866
  title: "Build / dependencies / internal \u{1F527}",
158857
- commit_patterns: ["^(?:build|refactor|meta|chore|ci)\\b"],
158867
+ commit_patterns: ["^(?:build|refactor|meta|chore|ci|ref|perf)\\b"],
158858
158868
  semver: "patch"
158859
158869
  }
158860
158870
  ]