Liking cljdoc? Tell your friends :D

diff-detector.core


branch-pattern->regexclj

(branch-pattern->regex pattern)

Converts a branch pattern like 'dev/*' to a regex pattern.

Converts a branch pattern like 'dev/*' to a regex pattern.
sourceraw docstring

detect-critical-changesclj

(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.
sourceraw docstring

file-path->namespaceclj

(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 -.
sourceraw docstring

get-changed-filesclj

(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.
sourceraw docstring

get-matching-branchesclj

(get-matching-branches branch-pattern)

Gets all branches matching the given pattern.

Gets all branches matching the given pattern.
sourceraw docstring

matches-namespace?clj

(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.
sourceraw docstring

namespace-pattern->regexclj

(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 $.
sourceraw docstring

resolve-branch-patternclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close