Comments (10)
Hi @SwabianCoder, it should be deployed and ready now.
from changelog-reader-action.
@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.
@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.
@mindsers E.g.:
validate_allowed_sections: true | false
Default: true
from changelog-reader-action.
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:
from changelog-reader-action.
@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.
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.
@all-contributors please add @SwabianCoder for bug
from changelog-reader-action.
I've put up a pull request to add @SwabianCoder! 🎉
from changelog-reader-action.
@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)
- Getting ##[error](intermediate value)(intermediate value)(intermediate value) is not iterable HOT 9
- Output additional params for creating releases HOT 5
- Suggestion: Action should throw an error if specified target version is not found. HOT 3
- Add validation of the changelog HOT 10
- Add warning and error messages for the validation feature
- Use a configuration file
- Preleases in Python do not parse appropriately HOT 2
- Replace newline with spaces HOT 4
- Warning about 'validation_depth' HOT 2
- Link references are filtered out from version entry HOT 9
- [Question] Finding a CHANGELOG.md dynamically? HOT 1
- Error: releasedVersions is not defined HOT 4
- latest version does not capture changelog content HOT 5
- exporting changelog entry to tmp file HOT 3
- Upgrade node version used by the action from 12 to 16 HOT 1
- `set-output` command deprecation HOT 5
- `set-output` command deprecation HOT 1
- The README claims `validation_depth` is set to `0` by default, but it isn't. HOT 3
- Update node version to node16 or higher HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from changelog-reader-action.