code_corps v0.0.1 CodeCorps.GitHub.Adapters.AppInstallation View Source

Module used to convert GitHub payloads into attributes for a GithubAppInstallation.

Link to this section Summary

Functions

Converts an installation event payload into attributes to create or update a GithubAppInstallation

Converts a GithubAppInstallation record attributes into a map of attributes that can be used for a GithubRepo record

Link to this section Functions

Link to this function from_installation_event(payload) View Source
from_installation_event(map()) :: map()

Converts an installation event payload into attributes to create or update a GithubAppInstallation.

Link to this function to_github_repo_attrs(installation) View Source
to_github_repo_attrs(CodeCorps.GithubAppInstallation.t()) :: map()

Converts a GithubAppInstallation record attributes into a map of attributes that can be used for a GithubRepo record.