Skip to content

Commit

Permalink
fix: prerelease<>draft overwriting
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-yurchenko committed Dec 21, 2019
1 parent 9c23ec9 commit ecd0754
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM golang:1.13.1-alpine

LABEL "repository"="https://github.com/anton-yurchenko/git-release"
LABEL "maintainer"="Anton Yurchenko <[email protected]>"
LABEL "version"="1.0.0"
LABEL "version"="1.1.0"

WORKDIR /opt/src
COPY . .
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit ecd0754

Please sign in to comment.