code_corps v0.0.1 CodeCorps.GitHub.Sync.Task View Source
Link to this section Summary
Functions
When provided a CodeCorps.GithubIssue and a CodeCorps.User, for the
CodeCorps.Project associated to that CodeCorps.GithubRepo, it creates or
updates a CodeCorps.Task
Creates or updates CodeCorps.Task records for each CodeCorps.GithubIssue
record that relates to the CodeCorps.GithubRepo
Link to this section Types
Link to this type
commit_result()
View Source
commit_result() :: {:ok, CodeCorps.Task.t()} | {:error, Ecto.Changeset.t()}
Link to this type
commit_result_aggregate()
View Source
commit_result_aggregate() :: {:ok, [CodeCorps.Task.t()]} | {:error, {[CodeCorps.Task.t()], [Ecto.Changeset.t()]}}
Link to this section Functions
Link to this function
sync_github_issue(github_issue, user)
View Source
sync_github_issue(CodeCorps.GithubIssue.t(), CodeCorps.User.t()) :: commit_result()
When provided a CodeCorps.GithubIssue and a CodeCorps.User, for the
CodeCorps.Project associated to that CodeCorps.GithubRepo, it creates or
updates a CodeCorps.Task.
Link to this function
sync_github_repo(repo)
View Source
sync_github_repo(CodeCorps.GithubRepo.t()) :: commit_result_aggregate()
Creates or updates CodeCorps.Task records for each CodeCorps.GithubIssue
record that relates to the CodeCorps.GithubRepo:
- Create or update the
CodeCorps.Task - Associate the
CodeCorps.Taskrecord with theCodeCorps.Userthat relates to theCodeCorps.GithubUserfor theCodeCorps.GithubIssue