Coder Social home page Coder Social logo

Comments (3)

boesing avatar boesing commented on June 23, 2024

We might consider semver v2 in general.

Semver v2 allows the following regex:
https://github.com/phly/keep-a-changelog/pull/72/files#diff-04b5d0b4bded820269443348d382fbc1R17

from automatic-releases.

Ocramius avatar Ocramius commented on June 23, 2024

Makes sense.

@slash3b implemented similar parsing in https://github.com/Roave/SecurityAdvisoriesBuilder/blob/ffb14fc66d2534a1c2f36b98fb82951097aabe9c/src/Roave/SecurityAdvisories/Matchers.php#L31-L44

from automatic-releases.

boesing avatar boesing commented on June 23, 2024

Yeah, the class also says "use semver regex from semver.org" :-D

^(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$

This provides a good prerelease information which supposed to be all we need to see if we have to mark a release as pre-release or not:
https://regex101.com/r/Ly7O1x/3/

The only thing is, how can we provide patches with that.
I've seen several *p1 releases in laminas (due to failed migration from zend):
laminas/laminas-diactoros@2.2.1...2.2.1p1
Is that something we want to match aswell?

from automatic-releases.

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.