This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-15
Channels
- # announcements (51)
- # beginners (65)
- # calva (44)
- # cider (6)
- # clara (3)
- # clj-kondo (30)
- # cljsrn (5)
- # clojure (63)
- # clojure-australia (7)
- # clojure-dev (7)
- # clojure-europe (43)
- # clojure-gamedev (1)
- # clojure-nl (6)
- # clojure-uk (7)
- # clojurescript (51)
- # conjure (1)
- # cursive (9)
- # datascript (16)
- # datomic (14)
- # depstar (20)
- # events (1)
- # exercism (17)
- # figwheel-main (6)
- # fulcro (9)
- # graphql (3)
- # gratitude (2)
- # honeysql (4)
- # jobs (7)
- # leiningen (3)
- # lsp (107)
- # meander (7)
- # minecraft (3)
- # off-topic (16)
- # other-languages (4)
- # pathom (4)
- # pedestal (26)
- # practicalli (4)
- # re-frame (3)
- # reitit (7)
- # remote-jobs (1)
- # shadow-cljs (26)
- # tools-deps (67)
- # vim (19)
- # vscode (1)
I have this github repo, I'm trying to work with the github rest API. Anyone know how to get the tags on the right for a repo? IN this case "agent" "proxy" "rabbitmq"
I think I need to get the blob, but to get the blob I need the blobs sha. I have no what blob or what sha I need.
No need for blobs.
Those things on the right are not tags. Tags are a Git concept, has nothing to do with those.
If you hover over those links, the URL will include /topics/
, so you can safely assume those are called topics.
Now, you can easily find it in the REST API docs: https://docs.github.com/en/rest/reference/repos#get-all-repository-topics
Ouch! That took me a good few seconds in the REPL to realize why it even works!
dev=> (as-> {:a {:b 42}} {:keys [a b]} [a b])
[{:b 42} nil]
dev=> (as-> {:a {:b 42}} {:keys [a b]} a)
{:b 42}
dev=> (as-> {:a {:b 42}} {:keys [a b]} b)
nil
long pause, staring at the results, then 💡@U2J4FRT2T If I find this in any codebase over the next 5 years I'm holding you personally responsible. I still have nightmares about this:
(defmethod humanize :foo [k {k v}] (str v))
Why type :foo
when you can just type k!