defmodule GitHub.Check.Suite do
@moduledoc """
Provides struct and type for CheckSuite
"""
@type t :: %__MODULE__{
after: String.t() | nil,
app: GitHub.Integration.t() | nil,
before: String.t() | nil,
check_runs_url: String.t(),
conclusion: String.t() | nil,
created_at: String.t() | nil,
head_branch: String.t() | nil,
head_commit: GitHub.Commit.simple(),
head_sha: String.t(),
id: integer,
latest_check_runs_count: integer,
node_id: String.t(),
pull_requests: [GitHub.PullRequest.Minimal.t()] | nil,
repository: GitHub.MinimalRepository.t(),
rerequestable: boolean | nil,
runs_rerequestable: boolean | nil,
status: String.t() | nil,
updated_at: String.t() | nil,
url: String.t() | nil
}
defstruct [
:after,
:app,
:before,
:check_runs_url,
:conclusion,
:created_at,
:head_branch,
:head_commit,
:head_sha,
:id,
:latest_check_runs_count,
:node_id,
:pull_requests,
:repository,
:rerequestable,
:runs_rerequestable,
:status,
:updated_at,
:url
]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
after: :string,
app: {GitHub.Integration, :t},
before: :string,
check_runs_url: :string,
conclusion: :string,
created_at: :string,
head_branch: :string,
head_commit: {GitHub.Commit, :simple},
head_sha: :string,
id: :integer,
latest_check_runs_count: :integer,
node_id: :string,
pull_requests: {:array, {GitHub.PullRequest.Minimal, :t}},
repository: {GitHub.MinimalRepository, :t},
rerequestable: :boolean,
runs_rerequestable: :boolean,
status: :string,
updated_at: :string,
url: :string
]
end
end