Add the ability to select scopes
azat-io opened this issue · comments
Azat S. commented
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:
feat: update footer icons
fix(first-npm-package): fix package using with typescript
chore: update deps
ci: improve github actions
feat(second-npm-package): improve error messages
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?