diff --git a/CHANGELOG.md b/CHANGELOG.md index 38c124b..339482a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,15 @@ # CHANGELOG +## v0.0.2 + + ## v0.0.1 ### 21 Mar 2024 +- ([`03043d0`](https://github.com/russmatney/log/commit/03043d0)) chore: version and changelog update - ([`c0a9e37`](https://github.com/russmatney/log/commit/c0a9e37)) docs: extend changelog to specify a latest version label > This lets me write the changelog with the new tag before it actually @@ -25,12 +29,6 @@ - ([`7e210ae`](https://github.com/russmatney/log/commit/7e210ae)) feat: generating initial changelog - ([`f3be3be`](https://github.com/russmatney/log/commit/f3be3be)) wip: bb code gathering commits per tag - -## v0.0.0 - - -### 21 Mar 2024 - - ([`e00bc10`](https://github.com/russmatney/log/commit/e00bc10)) feat: plugin version, split out todos - ([`1c7b719`](https://github.com/russmatney/log/commit/1c7b719)) chore: expand ci to cover more godot versions diff --git a/addons/log/plugin.cfg b/addons/log/plugin.cfg index 91052c2..ecabe23 100644 --- a/addons/log/plugin.cfg +++ b/addons/log/plugin.cfg @@ -10,5 +10,5 @@ Log.pr(\"some str\", some_object) - Prefixes logs with the callsite's source file - Opt-in to pretty printing via duck-typing (implement a `to_printable()` method on the object)" author="Russell Matney" -version="0.0.1" +version="0.0.2" script="plugin.gd" diff --git a/bb.edn b/bb.edn index 3033638..cd93d95 100644 --- a/bb.edn +++ b/bb.edn @@ -14,11 +14,21 @@ test-match (let [arg (some-> *command-line-args* first)] (shell-and-log (str "./addons/gdUnit4/runtest.sh -c -a " arg))) - release (do - (println "Update version in addons/log/plugin.cfg") - (println "Run `bb changelog ` to update the Changelog.md") - (println "Write commit for new version") - (println "Run add-and-push-tag ")) + release + (do + (println "Update version in addons/log/plugin.cfg") + (println "Run `bb changelog ` to update the Changelog.md") + (println "Stage expected files (plugin.cfg and changelog.md)") + (println "Run `bb commit-version `") + (println "Run `bb add-and-push-tag `")) + + commit-version + (let [tag (some-> *command-line-args* first)] + (if-not tag + (println "Expected passed tag") + (do + (println "Writing commit for all staged changes!") + (shell-and-log (str "git commit -m 'chore: new version: " tag "'"))))) changelog (let [tag-overwrite (some-> *command-line-args* first)] (changelog/rewrite-changelog {:latest-tag-label tag-overwrite})) @@ -30,5 +40,5 @@ (do (println "Creating and pushing tag!") (println "WARN: Assuming the current HEAD should be tagged and pushed") - (shell-and-log (str "git tag -a " tag)) + (shell-and-log (str "git tag " tag)) (shell-and-log (str "git push origin " tag)))))}}