Giter Site home page Giter Site logo

Comments (3)

momocow avatar momocow commented on May 22, 2024 1

Because I think that it only works with conventional commits and not sure if you can modify that behaviour or template

The changelog plugin has nothing to do with the generation of release notes.

It receives a string of release notes from release notes generator like @semantic-release/release-notes-generator or this plugin.

Therefore, it works not only for conventional commits but for any commits in any formats.

It is @semantic-release/release-notes-generator that is dedicated to conventional commits.

There is no changelog.md file on this repository and it is not included in the example neither

This plugin has nothing to do with the generation of changelog.

It is dedicated to parse gitmoji commits and generate release notes.


semantic-release-gitmoji only replaces @semantic-release/commit-analyzer and @semantic-release/release-notes-generator, not @semantic-release/changelog, as stated in README.

By the way, change log are not the first-hand product by semantic-release, it is made from the ecosystem, that is, users should generate them via extra plugins like @semantic-release/changelog.

To generate changelogs, just follow how the ecosystem suggests and this plugin will provide release notes required by changelog plugins.

That's why nothing about generating changelogs mentioned in README or at any place in this repository. Because it is out of the scope.


Thank you for asking. Hope it help you understand this plugin (and the semantic-release ecosystem) better.

from semantic-release-gitmoji.

arkadioz avatar arkadioz commented on May 22, 2024

I just tried to generate it the same way that you would do when using semantic-release tool, just adding the following config at the releaserc config file:

    [
      "@semantic-release/changelog",
      {
        "changelogFile": "docs/CHANGELOG.md",
        "changelogTitle": "# Gitmoji Changelog"
      }
    ]

and then at the @semantic-release/git part:

    [
      '@semantic-release/git',
      {
        assets: [
                "**/pom.xml",
                "docs/CHANGELOG.md"
              ],
        message: [
          ':bookmark: v${nextRelease.version} [skip ci]',
          '',
          'https://github.com/user/repo/releases/tag/${nextRelease.gitTag}'
        ].join('\n')
      }
    ]

and so far it works as expected, if this is all that must be done to generate the changelog it would be good to add this mention to the README of the project because when I first readed it, I though it was not going to be able to generate the changelog because the doc mentions:

"semantic-release-gitmoji should be used in place of both @semantic-release/commit-analyzer and @semantic-release/release-notes-generator since the both plugins parse commits following the conventional changelog while this plugin requires Gitmoji commits."

And also there is no changelog.md file on this repository and it is not included in the example neither

from semantic-release-gitmoji.

arkadioz avatar arkadioz commented on May 22, 2024

Thank you for the fast reply and clarifications on this

from semantic-release-gitmoji.

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.