Module Private.Review_modeSource

Review_mode.t describes the context in which the CR assignment and annotation logic is executed. This is not strictly tied to the CI event that triggered the workflow, but rather to the review/assignment semantics:

There exists a natural mapping between the event kinds that are triggering GitHub Actions Workflows and this review mode. Namely:

Sourcetype t =
  1. | Pull_request of {
    1. author : Volgo_base.Vcs.User_handle.t;
    2. base : Volgo_base.Vcs.Rev.t Base.option;
    }
  2. | Revision
include Ppx_compare_lib.Equal.S with type t := t
Sourceval equal : t -> t -> bool
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval arg : emit_github_annotations:Base.bool -> t Cmdlang.Command.Arg.t

Build a t from parsing arguments in the command line. For convenience and help users discover warnings during CI runs, this can optionally include CI warnings on stderr for GitHub, using workflow annotations. To activate, supply emit_github_annotations:true.