File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 1414 (let [pr-json
1515 (slurp
1616 (-> (str " https://api.github.com/repos/metabase/docs.metabase.github.io/pulls?head=metabase:" target-branch)
17- (shell {:out :string :continue true })))]
18- (some #(when (= target-branch (% " title" )) (% " number" ))
19- (json/parse-string pr-json))))
17+ (shell {:out :string :continue true })))
18+ _ (println " → PR JSON:" pr-json)
19+ o (some #(when (= target-branch (% " title" )) (% " number" ))
20+ (json/parse-string pr-json))]
21+ (println " → PR number:" o)
22+ (boolean o)))
2023
2124(defn -main [& args]
2225 (let [source-branch (or (first args) (usage ))
3841
3942 (println " → Checking for existing PR..." )
4043
41- (if (existing-pr? )
44+ (if (existing-pr? target-branch )
4245 (println " ✓ PR already exists: #" existing-pr?)
4346 (do
4447 (println " → Creating new PR..." )
You can’t perform that action at this time.
0 commit comments