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

Add the ability to select scopes

azat-io opened this issue · comments

My repository is a personal blog which is a monorepo with several npm packages.

I would like to be able to create a changelog that only includes changes in certain scopes. Something like this:

pnpm exec conventional-changelog -p angular -i changelog.md -s --scopes="first-npm-package,second-npm-package,third-npm-package"

For example, I have the following commit history:

  1. feat: update footer icons
  2. fix(first-npm-package): fix package using with typescript
  3. chore: update deps
  4. ci: improve github actions
  5. feat(second-npm-package): improve error messages
  6. docs(first-npm-package): add package usage examples

So, commits 1, 3 and 4 belong to the blog and have no value for other users. Users are only interested in commits related to npm packages. Thus, only commits 2, 5 and 6 should get into the changelog.md.

Is there a way to do so?

Looks like I have some kind of internet problem.
Sorry, duplicate of #948