conventional-changelog / conventional-changelog

Generate changelogs and release notes from a project's commit messages and metadata.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: conventionalcommits preset with PR owner

hrai opened this issue · comments

commented

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

203876397-7022f93e-7075-4a5a-8026-319d2f4297d0

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?