code_corps v0.0.1 CodeCorps.Comment.Service View Source

In charge of performing CRUD operations on Comment records, as well as any additional actions that need to be performed when such an operation happens.

Link to this section Summary

Functions

Creates a Comment record using the provided parameters

Updates the provided Comment record using the provided parameters

Link to this section Types

Link to this section Functions

Link to this function create(attributes) View Source
create(map()) ::
  {:ok, CodeCorps.Comment.t()} |
  {:error, Ecto.Changeset.t()}

Creates a Comment record using the provided parameters

Also creates comment on GitHub if associated Task is github-connected.

Link to this function update(comment, attributes) View Source
update(CodeCorps.Comment.t(), map()) ::
  {:ok, CodeCorps.Comment.t()} |
  {:error, Ecto.Changeset.t()}

Updates the provided Comment record using the provided parameters