Liking cljdoc? Tell your friends :D

monkey.ci.labels


apply-label-filtersclj

(apply-label-filters labels params)

Given a single set of parameters with label filters, checks if the given labels match. If there is at least one filter in the params' :label-filters for which all labels in the conjunction match, this returns true. If the params don't have any labels, this assumes all labels match.

Given a single set of parameters with label filters, checks if the given
labels match.  If there is at least one filter in the params' `:label-filters`
for which all labels in the conjunction match, this returns `true`.  If
the params don't have any labels, this assumes all labels match.
sourceraw docstring

filter-by-labelclj

(filter-by-label repo entities)
source

labels->mapclj

(labels->map l)
source

matches-labels?clj

(matches-labels? f labels)

Predicate that checks if the given labels match filter f. The filter is a list of a list of labels and values, where the first level represents a disjunction (logical 'or') and the second a conjunction (logical 'and').

Predicate that checks if the given labels match filter `f`.  The filter
is a list of a list of labels and values, where the first level represents a
disjunction (logical 'or') and the second a conjunction (logical 'and').
sourceraw docstring

reconcile-labelsclj

(reconcile-labels ex new)

Given db labels and label objects, matches them up to return a map that contains db labels to insert, update and delete. Unchanged labels are ignored. Normally it's not possible to have both labels to insert and to delete, since one of those two will be updated. Note that it is possible to have multiple labels with the same name.

Given db labels and label objects, matches them up to return a map that
contains db labels to insert, update and delete.  Unchanged labels are
ignored.  Normally it's not possible to have both labels to insert and
to delete, since one of those two will be updated.  Note that it is
possible to have multiple labels with the same name.
sourceraw docstring

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

× close