package crs
Module Private.AnnotationSource
A type to hold information about a CR that is assigned in the ci event (pull request or push to ongoing branch).
This is used by workflow that integrate with platforms or tools supporting annotations, such as GitHub Annotations, and Reviewdog Diagnostics.
Source
val of_cr :
cr:Cr_comment.t ->
config:Crs_cli__.Config.t ->
review_mode:Crs_cli__.Review_mode.t ->
with_user_mentions:Base.bool ->
t Base.optionWhen with_user_mentions is true, we prefix user names by '@' in annotations messages. See also write_username.
Utils
Source
val write_username :
user:Volgo_base.Vcs.User_handle.t ->
with_user_mention:Base.bool ->
Base.stringWhen with_user_mention is true we use the syntax '@user' in the annotation message to trigger a notification in the environment that will end up rendering this string. This doesn't always work, even when this is the correct syntax. For example, mentioning a user with '@' in a GitHub Annotations Panels does nothing.
Getters
Export to supported consumers / backend.