Effects for the digest: GitHub search, feed fetches, Slack, the state file, and secrets. Each fn does one effect and returns plain data.
Effects for the digest: GitHub search, feed fetches, Slack, the state file, and secrets. Each fn does one effect and returns plain data.
(clojars-artifact! group artifact)Clojars' JSON for one artifact: latest version, downloads, dependencies.
Clojars' JSON for one artifact: latest version, downloads, dependencies.
(clojars-artifacts! group)Artifact names Clojars lists for group. Throws on an HTTP failure.
Artifact names Clojars lists for `group`. Throws on an HTTP failure.
(fetch-text! url)GET url as a string. Throws on an HTTP failure.
GET `url` as a string. Throws on an HTTP failure.
(merged-prs! {:keys [org token]} {:keys [from to]})Every pull request merged in org inside the window, as GitHub search
hits. Throws on an HTTP failure, so a dead GitHub never reads as a quiet
day.
Every pull request merged in `org` inside the window, as GitHub search hits. Throws on an HTTP failure, so a dead GitHub never reads as a quiet day.
(post! token channel text opts)Post text to a Slack channel. Returns {:ok true :ts :channel} or
{:ok false :error}; an exception becomes an :error value.
Post `text` to a Slack channel. Returns {:ok true :ts :channel} or
{:ok false :error}; an exception becomes an :error value.(public-repos! org)(public-repos! org token){repo-name description} for every public repository of the GitHub org.
token is optional; without one the unauthenticated rate limit applies.
{repo-name description} for every public repository of the GitHub `org`.
`token` is optional; without one the unauthenticated rate limit applies.(read-state path)The digest state map, {} when there is no file yet. A file that does not read as EDN throws: guessing {} would post the day twice.
The digest state map, {} when there is no file yet. A file that does not
read as EDN throws: guessing {} would post the day twice.(secret {:keys [env command]})Resolve a secret spec {:env NAME :command [argv]}: the env var when it is
set, else the first line the command prints. The value is never logged.
A command that fails, or is not installed (a container without gh),
yields nil and the caller reports the secret missing or goes without it.
Resolve a secret spec {:env NAME :command [argv]}: the env var when it is
set, else the first line the command prints. The value is never logged.
A command that fails, or is not installed (a container without `gh`),
yields nil and the caller reports the secret missing or goes without it.(write-state! path state)Write the state map atomically (temp file, then rename). Returns it.
Write the state map atomically (temp file, then rename). Returns it.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |