File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 7474 the specified `ref` (default: HEAD)."
7575 {:malli/schema [:-> :string [:map
7676 [:ref {:optional true } :string ]
77+ [:annotated {:optional true
78+ :default true } :boolean ]
7779 [:tags [:sequential :string ]]]
7880 :nil ]}
79- [^String repo-root {:keys [ref tags]}]
81+ [^String repo-root {:keys [ref annotated tags]}]
8082 (with-open [git (Git/open (File. repo-root))]
8183 (let [repo (Git/.getRepository git)
8284 obj (resolve-object repo ref)]
8385 (doseq [tag tags]
8486 (let [cmd (Git/.tag git)]
8587 (TagCommand/.setName cmd tag)
8688 (TagCommand/.setObjectId cmd obj)
87- (TagCommand/.setAnnotated cmd false )
89+ (TagCommand/.setAnnotated cmd (if (boolean? annotated)
90+ annotated
91+ true ))
8892 (TagCommand/.call cmd))))))
Original file line number Diff line number Diff line change 2121 (commit *repo* " change-1" )
2222
2323 (git.tags/create-tags *repo* {:ref (git.commit/get-current-commit *repo*)
24+ :annotated false
2425 :tags [" b-1" ]})
2526
2627 (proc/shell {:dir (str *repo*)
You can’t perform that action at this time.
0 commit comments