package dune-release

  1. Overview
  2. Docs

Module Dune_release.Github_repoSource

Sourcetype t = {
  1. owner : string;
  2. repo : string;
}
Sourceval equal : t -> t -> bool
Sourceval pp : Format.formatter -> t -> unit
Sourceval from_uri : string -> t option

Parse a github URI into owner and repo. Return None if the given URI isn't a github one.

Sourceval from_gh_pages : string -> (t * Fpath.t) option

Parse a github pages URI of the form <owner>.github.io/<repo>/<extra_path> into ({owner; repo}, extra_path). extra_path is Fpath.v "." if there is no such component in the URI. Return None if the URI isn't a gh-pages one.

Sourceval https_uri : t -> string

Returns the HTTPS URI, in string form for the given repo

Sourceval ssh_uri : t -> string

Returns the "git@github" SSH URI, in string form for the given repo

OCaml

Innovation. Community. Security.