defmodule GitHub.Issue.Comment do
@moduledoc """
Provides struct and type for IssueComment
"""
@type t :: %__MODULE__{
author_association: String.t(),
body: String.t() | nil,
body_html: String.t() | nil,
body_text: String.t() | nil,
created_at: String.t(),
html_url: String.t(),
id: integer,
issue_url: String.t(),
node_id: String.t(),
performed_via_github_app: GitHub.Integration.t() | nil,
reactions: GitHub.Reaction.Rollup.t() | nil,
updated_at: String.t(),
url: String.t(),
user: GitHub.User.simple() | nil
}
defstruct [
:author_association,
:body,
:body_html,
:body_text,
:created_at,
:html_url,
:id,
:issue_url,
:node_id,
:performed_via_github_app,
:reactions,
:updated_at,
:url,
:user
]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
author_association: :string,
body: :string,
body_html: :string,
body_text: :string,
created_at: :string,
html_url: :string,
id: :integer,
issue_url: :string,
node_id: :string,
performed_via_github_app: {GitHub.Integration, :t},
reactions: {GitHub.Reaction.Rollup, :t},
updated_at: :string,
url: :string,
user: {GitHub.User, :simple}
]
end
end