From ecd0754c633a24860e673a609b63ae9c5889db1f Mon Sep 17 00:00:00 2001 From: Anton Yurchenko Date: Sat, 21 Dec 2019 23:53:12 +0200 Subject: [PATCH] fix: prerelease<>draft overwriting --- CHANGELOG.md | 7 +++++-- Dockerfile | 2 +- main.go | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad449c2..e4ff9d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ -## [Unreleased] +## [1.1.0] - 2019-12-21 ### Added -- Allow any prefix to semver tag +- [PR #3](https://github.com/anton-yurchenko/git-release/pull/3) Allow any prefix to semver tag. (*Thanks to [Taylor Becker](https://github.com/tajobe) for the PR*) + +### Fixed +- PreRelease overwriting Draft configuration. (*Thanks to [Taylor Becker](https://github.com/tajobe) for the reporting an issue*) ## [1.0.0] - 2019-10-01 - First stable release. diff --git a/Dockerfile b/Dockerfile index 7107229..9e24971 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM golang:1.13.1-alpine LABEL "repository"="https://github.com/anton-yurchenko/git-release" LABEL "maintainer"="Anton Yurchenko " -LABEL "version"="1.0.0" +LABEL "version"="1.1.0" WORKDIR /opt/src COPY . . diff --git a/main.go b/main.go index abd2273..1b71f90 100644 --- a/main.go +++ b/main.go @@ -52,9 +52,9 @@ func getConfig() config { // get prerelease p := os.Getenv("PRE_RELEASE") - c.Draft = false + c.PreRelease = false if p == "true" { - c.Draft = true + c.PreRelease = true } else if p != "false" { log.Warn("environmental variable PRE_RELEASE not set, assuming FALSE") }