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

Used to adapt a GitHub Issue payload into attributes for creating or updating a CodeCorps.GithubIssue and vice-versa.

Link to this section Summary

Functions

Converts a GithubIssue or Task into a set of attributes used to create or update an associated GitHub Issue on the GitHub API

Converts a GitHub Issue payload into a set of attributes used to create or update a GithubIssue record

Converts a GitHub Issue payload into a set of attributes used to create or update a Task record

Link to this section Functions

Converts a GithubIssue or Task into a set of attributes used to create or update an associated GitHub Issue on the GitHub API.

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

Converts a GitHub Issue payload into a set of attributes used to create or update a GithubIssue record.

Link to this function to_task(github_issue) View Source
to_task(CodeCorps.GithubIssue.t()) :: map()

Converts a GitHub Issue payload into a set of attributes used to create or update a Task record.