Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

How to calculate latest version impacting the package #29

Open
maticzav opened this issue Jan 21, 2019 · 0 comments
Open

How to calculate latest version impacting the package #29

maticzav opened this issue Jan 21, 2019 · 0 comments

Comments

@maticzav
Copy link
Owner

This issue describes the idea behind Semantha's versioning logic.

Presumptions

  1. The defined master branch is a basis for all other branches - all prereleases consider master as the only source of truth, regardless of the previous pre-releases.
  2. All relevant tags follow package_name@package_version tagging format.
  3. Package versions follow semantic versioning where pre-releases state the target master version and iteration of the prerelease (ie. semantha-core@v1.0.2-beta.2- this is the second iteration of code for 1.0.2 release)

Arguments

  1. prerelease tag (defaults to none - master),
  2. package name.

Idea

The algorithm crawls through the existing repository tags. Each tag is examined to match the name of the package. The algorithm is repeated/paginates through the results until it finds a matching prerelease tag or a master release.

Code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant