Skip to content

feat: configurable path in git rev-list#982

Merged
webpro merged 5 commits intorelease-it:masterfrom
b12k:feature/git-commits-path
Mar 1, 2023
Merged

feat: configurable path in git rev-list#982
webpro merged 5 commits intorelease-it:masterfrom
b12k:feature/git-commits-path

Conversation

@b12k
Copy link
Copy Markdown
Contributor

@b12k b12k commented Feb 26, 2023

Allows providing commits path when requreCommits: true.

Makes release-it configuration aligned with @release-it/conventional-changelog plugin:

const releaseItConfig = {
  plugins: {
    '@release-it/conventional-changelog': {
      preset: 'conventionalcommits',
      path: '.',
      gitRawCommitsOpts: {
        path: '.',
      },
    },
  },
  git: {
    requireCommits: true,
    commitsPath: '.',
    [...]
  },
  [...]
};

This configuration is handy when release-it is executed in npm workspace where only related commits should be taken into account.

@webpro
Copy link
Copy Markdown
Collaborator

webpro commented Feb 28, 2023

Nice @b12k! I like it, happy to merge. Any chance you could add a test for this?

@b12k
Copy link
Copy Markdown
Contributor Author

b12k commented Feb 28, 2023

@webpro tests added

@webpro webpro merged commit 81a7d69 into release-it:master Mar 1, 2023
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

Successfully merging this pull request may close these issues.

2 participants