File tree Expand file tree Collapse file tree 4 files changed +54
-48
lines changed Expand file tree Collapse file tree 4 files changed +54
-48
lines changed Original file line number Diff line number Diff line change 19
19
:1.11 {:override-deps {org.clojure/clojure {:mvn/version " 1.11.3" }}}
20
20
21
21
; ; Clojure pre-release to test against
22
- :1.12 {:override-deps {org.clojure/clojure {:mvn/version " 1.12.0-beta1 " }}}
22
+ :1.12 {:override-deps {org.clojure/clojure {:mvn/version " 1.12.0-beta2 " }}}
23
23
24
24
; ;
25
25
; ; ClojureScript version we test with (and support)
31
31
; ;
32
32
:nrepl
33
33
{:extra-deps {nrepl/nrepl {:mvn/version " 1.2.0" }
34
- cider/cider-nrepl {:mvn/version " 0.49.1 " }}
34
+ cider/cider-nrepl {:mvn/version " 0.49.2 " }}
35
35
:jvm-opts [" -XX:-OmitStackTraceInFastThrow" ]}
36
36
37
37
:nrepl/jvm
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rewrite-clj" ,
3
3
"devDependencies" : {
4
- "karma" : " ^6.4.3 " ,
4
+ "karma" : " ^6.4.4 " ,
5
5
"karma-chrome-launcher" : " ^3.2.0" ,
6
6
"karma-cljs-test" : " ^0.1.0" ,
7
7
"karma-junit-reporter" : " ^2.0.0" ,
8
8
"karma-spec-reporter" : " ^0.0.36" ,
9
- "shadow-cljs" : " ^2.28.10 "
9
+ "shadow-cljs" : " ^2.28.11 "
10
10
}
11
11
}
Original file line number Diff line number Diff line change 60
60
string/trim
61
61
seq))
62
62
63
+ (defn- local-branch? []
64
+ (let [{:keys [exit]} (t/shell {:continue true :out :string :err :out }
65
+ " git rev-parse --symbolic-full-name @{u}" )]
66
+ (not (zero? exit))))
67
+
63
68
(defn- unpushed-commits? []
64
69
(let [{:keys [exit :out ]} (t/shell {:continue true :out :string }
65
70
" git cherry -v" )]
66
- (if (zero? exit)
67
- (-> out string/trim seq)
68
- (status/die 1 " Failed to check for unpushed commits, are you on an unpushed branch?" ))))
71
+ (and (zero? exit) (-> out string/trim seq))))
69
72
70
73
(defn- commit-matches-default-head? []
71
74
(let [repo-head-sha (-> (t/shell {:out :string } (format " git ls-remote https://github.com/%s.git main" (build-shared/lib-github-coords )))
106
109
{:check " no uncommitted code"
107
110
:result (if (uncommitted-code? ) :fail :pass )}
108
111
{:check " no unpushed commits"
109
- :result (if (unpushed-commits? ) :fail :pass )}
112
+ :result (if (or ( local-branch? ) ( unpushed-commits? ) ) :fail :pass )}
110
113
{:check " in synch with project repo HEAD"
111
114
:result (if (commit-matches-default-head? ) :pass :fail )}
112
115
{:check " changelog has unreleased section"
You can’t perform that action at this time.
0 commit comments