~jacksonchen666/quick_statement_generator_for_software_version_identifier

bb260ee779a841fc92836209604964fbda589521 — Jackson Chen 2 years ago 846f18f
add prerelease flag and check for it in vers type
2 files changed, 2 insertions(+), 1 deletions(-)

M fetchers.go
M generators.go
M fetchers.go => fetchers.go +1 -0
@@ 41,6 41,7 @@ type SourceInfo struct {
	Name        string `json:"tag_name"`
	PublishedAt string `json:"published_at"`
	URL         string `json:"html_url"`
	PreRelease  bool   `json:"prerelease"`
}

/*

M generators.go => generators.go +1 -1
@@ 119,7 119,7 @@ func GenerateQSV1FromData(wikidataItem string, toAdd *[]SourceInfo, retrivedDate
		switch {
		case strings.Contains(i.Name, "rc"):
			release_type = VersionTypeReleaseCandidate
		case strings.Contains(i.Name, "pre"):
		case i.PreRelease || strings.Contains(i.Name, "pre"):
			release_type = VersionTypePreRelease
		case strings.Contains(i.Name, "beta"):
			release_type = VersionTypeBeta