Skip to content

Commit 57a0b29

Browse files
committed
Not only the 'master' prefix but also the 'main' prefix is now stripped when deriving the version identifier
1 parent 896925d commit 57a0b29

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
33
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

5+
## 1.28.1
6+
7+
### Fixed
8+
9+
- Not only the 'master' prefix but also the 'main' prefix is now stripped when deriving the version identifier.
10+
511
## 1.28.0
612

713
### Added

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ plugins {
2424
id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.13.2"
2525
}
2626

27-
val baseVersion = "1.28.0"
27+
val baseVersion = "1.28.1"
2828

2929
group = "de.itemis.mps"
3030

git-based-versioning/src/main/groovy/de/itemis/mps/gradle/GitBasedVersioning.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class GitBasedVersioning {
8686
static String getVersion(String branch, String major, String minor, String bugfix = "", int count) {
8787
def hash = getGitShortCommitHash()
8888
def baseVersion = bugfix.isEmpty() ? "$major.$minor.$count.$hash" : "$major.$minor.$bugfix.$count.$hash"
89-
if (branch == 'master' || branch == 'HEAD' /*this happens in detached head situations*/) {
89+
if (branch == 'master' || branch == 'main' || branch == 'HEAD' /*this happens in detached head situations*/) {
9090
return baseVersion
9191
}
9292

0 commit comments

Comments
 (0)