Skip to content

Commit

Permalink
Skip non-SemVer tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Pete Emerson committed Oct 26, 2020
1 parent 801c1f5 commit 441309b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions github.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ func FetchTags(githubRepoUrl string, githubToken string, instance GitHubInstance
}

for _, tag := range tags {
// Skip tags that are not semantically versioned so that they don't cause errors. (issue #75)
if _, err := version.NewVersion(tag.Name); err == nil {
tagsString = append(tagsString, tag.Name)
}
Expand Down

0 comments on commit 441309b

Please sign in to comment.