Giter VIP home page Giter VIP logo

Comments (9)

max10rogerio avatar max10rogerio commented on July 30, 2024 39

Thanks!!!

After opened the PR, I read again the last note

Note: For presets that expects a configuration object, such as conventionalcommits, the presetConfig option must be set.

I changed the .releaserc.json and...

image

I needed to install the package: conventional-changelog-conventionalcommits and updated for:

{
  "branch": "master",
  "plugins": [
    [
      "@semantic-release/commit-analyzer",
      {
        "releaseRules": [
          {
            "type": "refactor",
            "release": "patch"
          },
          {
            "type": "docs",
            "release": "patch"
          },
          {
            "type": "test",
            "release": "patch"
          },
          {
            "type": "style",
            "release": "patch"
          },
          {
            "type": "perf",
            "release": "patch"
          },
          {
            "type": "ci",
            "release": "patch"
          },
          {
            "type": "build",
            "release": "patch"
          }
        ]
      }
    ],
    [
      "@semantic-release/release-notes-generator",
      {
        "preset": "conventionalcommits",
        "presetConfig": {
          "types": [
            {
              "type": "feat",
              "section": ":sparkles: Novidades",
              "hidden": false
            },
            {
              "type": "fix",
              "section": ":bug: Correções",
              "hidden": false
            },
            {
              "type": "docs",
              "section": ":memo: Documentação",
              "hidden": false
            },
            {
              "type": "style",
              "section": ":barber: Estilização",
              "hidden": false
            },
            {
              "type": "refactor",
              "section": ":zap: Refatoração",
              "hidden": false
            },
            {
              "type": "perf",
              "section": ":fast_forward: Desempenho",
              "hidden": false
            },
            {
              "type": "test",
              "section": ":white_check_mark: Testes",
              "hidden": false
            },
            {
              "type": "ci",
              "section": ":repeat: CI",
              "hidden": false
            },
            {
              "type": "chore",
              "hidden": true
            }
          ]
        }
      }
    ],
    [
      "@semantic-release/github",
      {
        "assets": [
          {
            "path": "server.zip",
            "label": "DeltaWeb - Build: ${nextRelease.gitTag}",
            "name": "server-${nextRelease.gitTag}.zip"
          }
        ]
      }
    ]
  ]
}

from release-notes-generator.

tomavic avatar tomavic commented on July 30, 2024 2

This solution should be highlighted in the documentation as many issues refers to it.

from release-notes-generator.

pvdlg avatar pvdlg commented on July 30, 2024 1

The default preset is angular and I don't think it uses the types property.
Maybe you meant to use another preset that support this property?

from release-notes-generator.

pvdlg avatar pvdlg commented on July 30, 2024 1

Maybe you were trying to use the conventionalcommits preset that seems to support the option you are trying to use: https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-conventionalcommits/writer-opts.js#L160

from release-notes-generator.

mdrijwan avatar mdrijwan commented on July 30, 2024 1

@max10rogerio thanks man! this is brilliant!!

from release-notes-generator.

max10rogerio avatar max10rogerio commented on July 30, 2024

Sorry, the first time I tried using presetConfig, but it wasn't working ...

Any ideia of how change the title of section commits using preset angular?

from release-notes-generator.

pvdlg avatar pvdlg commented on July 30, 2024

I don't think the angular preset support any option. You will have to rewrite the transform function: https://github.com/conventional-changelog/conventional-changelog/blob/79217815a7ce5f3d3f833961ce9a14bd454e5789/packages/conventional-changelog-angular/writer-opts.js#L27

from release-notes-generator.

TheNotary avatar TheNotary commented on July 30, 2024

True, but if you felt ignored about your opinions towards commit messages you might fare the same unwillingness to help after a long day of trying to get something working that you'd expect to have been fast and simple.

Btw, don't forget to run the below command or you'll get errors about removing the presets from the built-in libs.

npm install --save conventional-changelog

from release-notes-generator.

tomavic avatar tomavic commented on July 30, 2024

Does anyone got any idea?
Still needs more explanation!

from release-notes-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.