Giter Site home page Giter Site logo

Comments (10)

mindsers avatar mindsers commented on September 21, 2024 1

Hi @SwabianCoder, it should be deployed and ready now.

from changelog-reader-action.

mindsers avatar mindsers commented on September 21, 2024

@SwabianCoder Thanks for taking the time to open this issue to find solution. We'll need time to think about this and understand how the community uses prerelease versions. If you have documentations to share about the topic, do not hesitate to paste them in this discussion feed.

from changelog-reader-action.

SwabianCoder avatar SwabianCoder commented on September 21, 2024

@mindsers I just checked the sample changelog on Keep a Changelog website. All versions listed there could e.g. have an added section.

After seeing the sample changelog on their website I was a bit wondering why your having this has-correct-sections.js file in your repository.

As an idea: what about making correct sections configurable?

from changelog-reader-action.

SwabianCoder avatar SwabianCoder commented on September 21, 2024

@mindsers E.g.:

validate_allowed_sections: true | false
Default: true

from changelog-reader-action.

mindsers avatar mindsers commented on September 21, 2024

I just checked the sample changelog on Keep a Changelog website. All versions listed there could e.g. have an added section.

After seeing the sample changelog on their website I was a bit wondering why your having this has-correct-sections.js file in your repository.

We do not have it because of Keep a Changelog but because of Semver:

Capture d’écran 2022-08-09 à 8 33 33 AM

from changelog-reader-action.

SwabianCoder avatar SwabianCoder commented on September 21, 2024

@mindsers Then may the prerelease section restriction should be removed because SemVer docs don't really tell how to use prereleases.

from changelog-reader-action.

mindsers avatar mindsers commented on September 21, 2024

After looking at how the semver package works :

diff(v1, v2): Returns difference between two versions by the release type (major, premajor, minor, preminor, patch, prepatch, or prerelease), or null if the versions are the same.

It seems that the generic “prerelease” is returned only when two prerelease versions of the same version are compared. This remove the information about “what type of prerelease” are compared (prepatch, preminor, premajor).

The action's code currently acts as a prerelease is always a prepatch, which is wrong and leads to this false positive in the check. Until I found a better and more accurate solution, I propose to treat the prerelease as a premajor which is the less restrictive check.

from changelog-reader-action.

mindsers avatar mindsers commented on September 21, 2024

@all-contributors please add @SwabianCoder for bug

from changelog-reader-action.

allcontributors avatar allcontributors commented on September 21, 2024

@mindsers

I've put up a pull request to add @SwabianCoder! 🎉

from changelog-reader-action.

SwabianCoder avatar SwabianCoder commented on September 21, 2024

@mindsers Thanks a lot for fixing this behavior! When do you release a new version containing this bugfix? I'm currently blocked with further development of my open source projects due to this bug.

from changelog-reader-action.

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.