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

How can I generate changelog for specific scope #921

Open
dwips opened this issue Jul 22, 2022 · 2 comments
Open

How can I generate changelog for specific scope #921

dwips opened this issue Jul 22, 2022 · 2 comments
Labels

Comments

@dwips
Copy link

dwips commented Jul 22, 2022

Hi All,
I have requirement to generate changelog for multiple packages by the scope
example:
packages/ui only generate changelog when there is commit message with scope "ui", fix(ui), feat(ui)

packages/utils only generate changelog when there is commit message with scope "utils", fix(utils), feat(utils)

is there a way to do it?

Thank you

@dwips dwips added the question label Jul 22, 2022
@TimothyJones
Copy link
Contributor

I don't think standard-version supports this without scripting something around it. The discussion here might be helpful to you.

@gaetansenn
Copy link

gaetansenn commented Mar 30, 2023

You can achieve this by adding a .versionrc in your specific package and add the "scope" option. Here an example :

{
  "types": [
    {"type": "feat", "section": "Features", "scope": "ui" },
    {"type": "fix", "section": "Bug Fixes", "scope": "ui" },
    {"type": "chore", "hidden": true, "scope": "ui" },
    {"type": "style", "hidden": true, "scope": "ui" },
    {"type": "refactor", "hidden": true, "scope": "ui"},
    {"type": "perf", "hidden": true, "scope": "ui"},
    {"type": "test", "hidden": true, "scope": "ui"}
  ]
}

Here the documentation: https://github.com/conventional-changelog/conventional-changelog-config-spec/blob/master/versions/2.2.0/README.md#types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants