diff options
| author | Jeff Carr <[email protected]> | 2024-12-15 08:46:23 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-15 08:46:23 -0600 |
| commit | 139653ba8c6676f7e9e2b501e9806b2bd8f02045 (patch) | |
| tree | 93c9e4d2343d68bdec4cc6657ad70eefc2e08905 /prepareRelease.go | |
| parent | 7bfd2406499d43e555ed878f27455f8b6f32fbda (diff) | |
add --minor argv. will it work?v0.22.41
Diffstat (limited to 'prepareRelease.go')
| -rw-r--r-- | prepareRelease.go | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/prepareRelease.go b/prepareRelease.go index c8ac608..4c14bf5 100644 --- a/prepareRelease.go +++ b/prepareRelease.go @@ -41,8 +41,13 @@ func makePrepareRelease() { master := check.GetMasterVersion() lastTag := check.GetLastTag() if master != lastTag { - // if v1.2.3 change to v.1.2.4 - check.IncrementTargetRevision() + if argv.Minor { + // if v1.2.3 change to v.1.3.0 + check.IncrementTargetMinor() + } else { + // if v1.2.3 change to v.1.2.4 + check.IncrementTargetRevision() + } if !runGoClean(check) { log.Info("go-mod-clean FAILED. THIS IS BAD.", check.GoPath) } @@ -58,8 +63,13 @@ func makePrepareRelease() { continue } log.Printf("dependancy checks indicate a new release is needed for %s\n", check.GetGoPath()) - // if v1.2.3 change to v.1.2.4 - check.IncrementTargetRevision() + if argv.Minor { + // if v1.2.3 change to v.1.3.0 + check.IncrementTargetMinor() + } else { + // if v1.2.3 change to v.1.2.4 + check.IncrementTargetRevision() + } // run go-mod-clean in each repo that needs to be updated if master == lastTag { // 'git notes' has something in it. clear it out |
