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

feat: configurable path in git rev-list #982

Merged
merged 5 commits into from Mar 1, 2023
Merged

feat: configurable path in git rev-list #982

merged 5 commits into from Mar 1, 2023

Conversation

b12k
Copy link
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
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
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.

None yet

2 participants