unjs/changelogen

commits prefixed with "chore(deps)" are ignored in changelog

MogliCodes opened this issue ยท 1 comments

Describe the feature

I am not sure if this a desired behaviour or if it is configurable, but when I generate a changelog the commits that have a type of chore AND a scope get ignored. commits of type chore without any scope are not ignored.

For instance, I am using dependabot and it creates commit messages with type and scope like "chore(deps-dev)" and I would like to include these commits in my changelog.

This is my changelog.config.json. Do I need to add a scopeMap? If so, I think a hint in the documentation would be helpful, since all scopes for commit types "feat" are accepted.

{
    "types": {
      "feat": {
        "title": "๐Ÿš€ Features"
      },
      "fix": {
        "title": "๐Ÿž Bug Fixes"
      },
      "chore": {
        "title": "๐Ÿงน Chores",
        "semver": "patch"
      },
      "refactor": {
        "title": "โ™ป๏ธ Refactor"
      },
      "build": {
        "title": "๐Ÿ— Build"
      },
      "test": {
        "title": "๐Ÿงช Test"
      },
      "docs": {
        "title": "๐Ÿ“„ Docs"
      },
      "style": {
        "title": "๐Ÿ‘จโ€๐ŸŽค Style",
        "semver": "patch"
      },
      "ci": {
        "title": "๐Ÿšš CI/CD",
        "semver": "minor"
      }
    }
  }

Additional information

  • Would you be willing to help implement this feature?
tmlmt commented

It's not a bug, it's a hard-coded deliberate behavior of the current version. I have pushed a PR #103 to propose a way to customize which types(scopes) should be ignored. Waiting for maintainer feedback.