You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mappingOutputFile:=flag.String("mapping-output-file", "", "a file name to write the source->dest hash mapping to ({{.Tag}} is substituted with the tag name, {{.Branch}} with the local branch name)")
81
-
publishSemverTags:=flag.Bool("publish-v0-semver", false, "publish v0.x.y tag at destination repo for v1.x.y tag at the source repo")
82
+
publishV0Semver:=flag.Bool("publish-v0-semver", false, "publish v0.x.y tag at destination repo for v1.x.y tag at the source repo")
83
+
publishSemverTags:=flag.Bool("publish-semver-tags", false, "publish vX.Y.Z tag at destination repo for vX.Y.Z tag at the source repo")
84
+
skipNonSemverTags:=flag.Bool("skip-non-semver-tags", false, "skip non-semver tags at the source repo")
85
+
semverTagsBase:=flag.String("semver-tags-base", "v0", "the value to use as vX in vX.Y.Z published at the destination repo")
82
86
83
87
flag.Usage=Usage
84
88
flag.Parse()
@@ -91,6 +95,10 @@ func main() {
91
95
glog.Fatalf("source-branch cannot be empty")
92
96
}
93
97
98
+
if*publishV0Semver&&*publishSemverTags {
99
+
glog.Fatalf("only one of publish-v0-semver and publish-semver-tags can be true")
0 commit comments