Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: conventionalcommits preset with PR owner #393

Open
hrai opened this issue Nov 25, 2022 · 0 comments
Open

Question: conventionalcommits preset with PR owner #393

hrai opened this issue Nov 25, 2022 · 0 comments

Comments

@hrai
Copy link

hrai commented Nov 25, 2022

We have conventionalcommits preset in out pipeline that generates the following changelog.

image

Here's the full set of config.

[
      // produces the release notes that are consumed by the changelog
      // plugin and by the GitHub plugin (for GitHub releases)
      '@semantic-release/release-notes-generator',
      {
        preset: 'conventionalcommits',
        presetConfig: {
          types,
        },
        writerOpts: {
          commitGroupsSort: (a, b) => {
            const commitGroupOrder = [
              nameForType('revert'),
              nameForType('perf'),
              nameForType('fix'),
              nameForType('feat'),
            ];
            const gRankA = commitGroupOrder.indexOf(a.title);
            const gRankB = commitGroupOrder.indexOf(b.title);
            if (gRankA >= gRankB) {
              return -1;
            }
            return 1;
          },
        },
      },
    ]

Is there a way to change that to append the PR owner to each row of commit message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant