Gitlab.UserThe User module provides access to User API.
val by_id : id:string -> unit -> Gitlab_t.user Response.t Monad.tby_id ~id () is the user information for user id.
See Single User.
val by_name : name:string -> unit -> Gitlab_t.users Response.t Monad.tby_name ~name () search for user by name.
See List Users.
val current_user :
token:Token.t ->
unit ->
Gitlab_t.current_user Response.t Monad.tcurrent_user ~token () is the current user for token. See Current Authenticated User.
val projects : id:string -> unit -> Gitlab_t.projects_short Response.t Monad.tprojects ~id () list user projects for user id.
See List User Projects.
val merge_requests :
token:Token.t ->
?state:Gitlab_t.state ->
?milestone:string ->
?labels:string list ->
?author:string ->
?author_username:string ->
?my_reaction:string ->
?scope:Gitlab_t.merge_request_scope ->
unit ->
Gitlab_t.merge_request Stream.tmerge_requests () list all merge requests the authenticated user has access to.
See List merge requests.
val issues :
token:Token.t ->
?state:Gitlab_t.state ->
?assignee:string ->
?assignee_username:string ->
?milestone:string ->
?labels:string list ->
?author:string ->
?author_username:string ->
?scope:Gitlab_t.merge_request_scope ->
unit ->
Gitlab_t.issue Stream.tissues ~token () returns a list of project issues.
See List issues.
val events :
token:Token.t ->
id:string ->
?action:Gitlab_t.event_action_type ->
?target_type:Gitlab_t.event_target_type ->
?per_page:int ->
?after:string ->
?sort:Gitlab_t.sort ->
unit ->
Gitlab_t.event Stream.tevents ~token ~id get the contribution events for the specified user.
module PersonalAccessToken : sig ... endPersonal access tokens for User authentication.