File tree 3 files changed +11
-8
lines changed
3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 45
45
:task publish/-main}
46
46
neil ; ; let's not rely on a random version of neil
47
47
{:doc " Pinned version of babashka/neil (used in scripting)"
48
- :extra-deps {io.github.babashka/neil {:git/tag " v0.3.65 " :git/sha " 9a79582 " }}
48
+ :extra-deps {io.github.babashka/neil {:git/tag " v0.3.67 " :git/sha " 054ca51 " }}
49
49
:task babashka.neil/-main}
50
50
; ; hidden tasks, no need for folks to be trying these ci invoked tasks
51
51
-ci-clojars-deploy
Original file line number Diff line number Diff line change 9
9
:1.9 {:override-deps {org.clojure/clojure {:mvn/version " 1.9.0" }}}
10
10
:1.10 {:override-deps {org.clojure/clojure {:mvn/version " 1.10.3" }}}
11
11
:1.11 {:override-deps {org.clojure/clojure {:mvn/version " 1.11.3" }}}
12
- :1.12 {:override-deps {org.clojure/clojure {:mvn/version " 1.12.0-beta1 " }}}
12
+ :1.12 {:override-deps {org.clojure/clojure {:mvn/version " 1.12.0-beta2 " }}}
13
13
:build
14
14
{:extra-paths [" build" ]
15
- :deps {io.github.clojure/tools.build {:mvn/version " 0.10.4 " }
15
+ :deps {io.github.clojure/tools.build {:mvn/version " 0.10.5 " }
16
16
slipset/deps-deploy {:mvn/version " 0.2.2" }}
17
17
:ns-default build}
18
18
:http-server ; ; used for to support integration tests
35
35
:clj-kondo {:extra-deps {clj-kondo/clj-kondo {:mvn/version " 2024.05.24" }}
36
36
:override-deps {org.clojure/clojure {:mvn/version " 1.11.3" }}
37
37
:main-opts [" -m" " clj-kondo.main" ]}
38
- :outdated {:extra-deps {com.github.liquidz/antq {:mvn/version " 2.8.1201 " }
38
+ :outdated {:extra-deps {com.github.liquidz/antq {:mvn/version " 2.8.1206 " }
39
39
org.clojure/clojure {:mvn/version " 1.11.3" }
40
40
org.slf4j/slf4j-simple {:mvn/version " 2.0.13" } ; ; to rid ourselves of logger warnings
41
41
}
Original file line number Diff line number Diff line change 53
53
string/trim
54
54
seq))
55
55
56
+ (defn- local-branch? []
57
+ (let [{:keys [exit]} (t/shell {:continue true :out :string :err :out }
58
+ " git rev-parse --symbolic-full-name @{u}" )]
59
+ (not (zero? exit))))
60
+
56
61
(defn- unpushed-commits? []
57
62
(let [{:keys [exit :out ]} (t/shell {:continue true :out :string }
58
63
" git cherry -v" )]
59
- (if (zero? exit)
60
- (-> out string/trim seq)
61
- (status/die 1 " Failed to check for unpushed commits, are you on an unpushed branch?" ))))
64
+ (and (zero? exit) (-> out string/trim seq))))
62
65
63
66
(defn- analyze-changelog
64
67
" Certainly not fool proof, but should help for common mistakes"
87
90
{:check " no uncommitted code"
88
91
:result (if (uncommitted-code? ) :fail :pass )}
89
92
{:check " no unpushed commits"
90
- :result (if (unpushed-commits? ) :fail :pass )}
93
+ :result (if (or ( local-branch? ) ( unpushed-commits? ) ) :fail :pass )}
91
94
{:check " changelog has unreleased section"
92
95
:result (if (:section-missing changelog-findings) :fail :pass )}
93
96
{:check " changelog unreleased section attributes valid"
You can’t perform that action at this time.
0 commit comments