diff --git a/docs/user/semver.md b/docs/user/semver.md index c9bf52ef..5db0b252 100644 --- a/docs/user/semver.md +++ b/docs/user/semver.md @@ -1,22 +1,37 @@ --- -title: Semantic version +title: Semantic Version license: 'CC-BY-SA-4.0' --- -[SemVer](https://semver.org/spec/v2.0.0.html) allows users to understand the scope of a software update at first glance, based on the following : +[SemVer](https://semver.org/spec/v2.0.0.html) allows users to understand the scope of a software update at first glance, based on the following: -- Patch is increased for backwards-compatible bugfixes. -- Minor is increased for backwards-compatible new features. -- Major is increased for breaking changes. +- `` is increased for breaking changes. +- `` is increased for backwards-compatible new features. +- `` is increased for backwards-compatible bug fixes. -_something_ could be : +Changes could be: -- a command, an option or an argument, for a CLI ; -- a route path, a query parameter or a body property, for a REST API ; -- a text node, a button or a field, for a GUI. +- a command, an option or an argument, for a CLI +- a route path, a query parameter or a body property, for a REST API +- a text node, a button or a field, for a GUI Since Forgejo has all of the above, changes to all of those components should be taken into consideration when creating a new version number. +## Understanding the Forgejo stable semantic version + +The structure of the version number is `..+gitea-`, where: + +- `..` is conformant to [Semantic Versioning 2.0.0](https://semver.org/#semantic-versioning-200) +- `gitea-` is the Gitea version this Forgejo release is compatible with + +## Understanding the Forgejo pre-release semantic version + +The structure of the version number is `..-+gitea-`, where: + +- `..` is conformant to [Semantic Versioning 2.0.0](https://semver.org/#semantic-versioning-200) +- `` is the pre-release version, such as a release candidate (`RC`) +- `gitea-` is the Gitea version this Forgejo release is compatible with + ## Getting the Forgejo semantic version As of Forgejo v1.19, there are two version numbering schemes: @@ -35,11 +50,3 @@ For instance, the semantic version for https://code.forgejo.org can be obtained $ curl https://code.forgejo.org/api/forgejo/v1/version {"version":"3.0.0+0-gitea-1.19.0"} ``` - -## Understanding the Forgejo semantic version - -The structure of the version number is `..+-gitea-` where: - -- `..` is conformant to [Semantic Versioning 2.0.0](https://semver.org/#semantic-versioning-200) -- `` is the release build number of an otherwise identical source -- `gitea-` is the Gitea version this Forgejo release depends on