package dune-release

  1. Overview
  2. Docs
val user_from_remote : string -> string option

user_from_remote remote_uri is the username in the github URI remote_uri, ie:

  • user_from_remote_uri "git@github.com:username/repo.git" returns Some "username"
  • user_from_remote_uri "https://github.com/username/repo.git" returns Some "username".
  • Returns None if remote_uri isn't in the expected format.
OCaml

Innovation. Community. Security.