package datakit-github

  1. Overview
  2. Docs

Parameters

Signature

type t

The type for synchronizer state.

val empty : t

Create an empty sync state.

val sync : token:API.token -> ?webhook:API.Webhook.t -> ?resync_interval:float -> ?switch:Lwt_switch.t -> ?policy:[ `Once | `Repeat ] -> ?cap:Datakit_github.Capabilities.t -> DK.Branch.t -> t -> t Lwt.t

sync ~token b t mirror GitHub changes in the DataKit branch b. The GitHub API calls use the token token. The default policy is `Repeat and cap is Cap.all.