This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-24
Channels
- # aleph (5)
- # announcements (18)
- # babashka (3)
- # babashka-sci-dev (56)
- # beginners (56)
- # biff (5)
- # calva (27)
- # cider (20)
- # clj-commons (2)
- # clj-kondo (17)
- # cljsrn (18)
- # clojure (41)
- # clojure-europe (24)
- # clojure-nl (1)
- # clojure-serbia (1)
- # clojure-uk (15)
- # clojured (1)
- # clojurescript (40)
- # cursive (39)
- # datahike (2)
- # datalevin (4)
- # datascript (5)
- # emacs (23)
- # events (2)
- # figwheel-main (3)
- # inf-clojure (1)
- # instaparse (23)
- # introduce-yourself (3)
- # jobs (3)
- # jobs-discuss (13)
- # joyride (1)
- # juxt (10)
- # malli (21)
- # nbb (29)
- # off-topic (18)
- # pathom (29)
- # polylith (11)
- # project-updates (1)
- # proletarian (1)
- # rdf (2)
- # re-frame (4)
- # reitit (2)
- # releases (2)
- # remote-jobs (1)
- # shadow-cljs (52)
- # tools-deps (57)
- # xtdb (32)
If I have a git SHA, can I use poly to tell me which projects were changed in that commit?
Subscribing to this as I also need this info. Have a workaround but not convinced it will work in all situations
yeah, specifically what I'd like to do is show the commits between the previous and the new tag (= production release). Obviously just listing the commits is easy, but I don't want to list all the commits, just the ones that changed the project in question
(defn files-changed-in-commit [dir git-ref]
(git dir "diff-tree" "--root" "--no-commit-id" "--name-only" "-r" git-ref))
Then pass the result of that to
(defn poly-changes [{:keys [paths] :as workspace} changed-files]
(poly-change/changes
workspace
{:tag "n/a"
:since "n/a"
:since-sha "n/a"
:files changed-files}
paths))
obviously, this isn't supported by polylith (I'm calling into an implementation ns there on top of all that)
Thanks for sharing :thumbsup: