Explorer

definy.read-snapshot-summaries

description
(en) The accepted project snapshots as core.snapshot-summary (the facts the rules core.check-event and core.project-branches use)
type
Fn(then: Fn(commits: List<@core.snapshot-summary>) -> @definy.service-io) -> @definy.service-io
expression
fn(then$0) =>
  @definy.read-snapshot-summary-list(
    then: fn(commits$1) =>
      $0(
        commits: @core.list-map(
          T: @definy.event-snapshot,
          U: @core.snapshot-summary,
          f: fn(item$2) =>
            @definy.snapshot-summary-of(commit: $2),
          xs: $1
        )
      )
  )
visibility
public
definy.read-snapshot-summaries (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: 8_hT6OX3m67tSkOQMPc89bWMNdXUl8UCs_SdvJFxAhA
content hash: O7QWSipa1oVlDhTZ3yOgkvN5m63db3-TXeeCzsKqVOE