(branch-pattern->regex pattern)
Converts a branch pattern like 'dev/*' to a regex pattern.
Converts a branch pattern like 'dev/*' to a regex pattern.
(detect-critical-changes base-commit target-commit namespace-patterns)
Main detection logic that finds changes in critical namespaces. Returns a map with :changed? boolean and :changed-files vector.
Main detection logic that finds changes in critical namespaces. Returns a map with :changed? boolean and :changed-files vector.
(file-path->namespace file-path)
Converts a file path to a Clojure namespace. Removes everything up to /src/, removes file extensions, converts / to . and _ to -.
Converts a file path to a Clojure namespace. Removes everything up to /src/, removes file extensions, converts / to . and _ to -.
(get-changed-files base-commit target-commit)
Executes git diff --name-only between two commits and returns the list of changed files.
Executes git diff --name-only between two commits and returns the list of changed files.
(get-matching-branches branch-pattern)
Gets all branches matching the given pattern.
Gets all branches matching the given pattern.
(matches-namespace? file-path namespace-patterns)
Checks if a file path matches any of the namespace patterns.
Checks if a file path matches any of the namespace patterns.
(namespace-pattern->regex pattern)
Converts a namespace pattern like 'app.security.' to a regex pattern. Escapes dots and hyphens, converts * to ., and anchors with ^ and $.
Converts a namespace pattern like 'app.security.*' to a regex pattern. Escapes dots and hyphens, converts * to .*, and anchors with ^ and $.
(resolve-branch-pattern branch-pattern)
Resolves a branch pattern to actual branch names. If the pattern contains wildcards, returns all matching branches. Otherwise, returns the pattern as-is.
Resolves a branch pattern to actual branch names. If the pattern contains wildcards, returns all matching branches. Otherwise, returns the pattern as-is.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close