Gullintanni v0.1.0 Gullintanni.Provider behaviour

Specifies the API that a provider module is required to implement.

Providers are adapter modules that interface with a Git hosting service.

Summary

Callbacks

Returns the domain name of the provider

Downloads a list of the repository’s open merge requests

Converts raw upstream data into a merge request

Returns true if all required provider configuration values exist in config, otherwise false

Returns the provider account’s effective user identity

Types

t()
t() :: module

Callbacks

__domain__()
__domain__() :: String.t

Returns the domain name of the provider.

download_merge_requests(arg0, arg1)

Downloads a list of the repository’s open merge requests.

parse_merge_request(map)
parse_merge_request(map) :: Gullintanni.MergeRequest.t

Converts raw upstream data into a merge request.

valid_config?(arg0)
valid_config?(Gullintanni.Config.t) :: boolean

Returns true if all required provider configuration values exist in config, otherwise false.

whoami(arg0)

Returns the provider account’s effective user identity.