defmodule GitHub.PullRequest.MergeResult do @moduledoc """ Provides struct and type for PullRequestMergeResult """ use GitHub.Encoder @type t :: %__MODULE__{__info__: map, merged: boolean, message: String.t(), sha: String.t()} defstruct [:__info__, :merged, :message, :sha] @doc false @spec __fields__(atom) :: keyword def __fields__(type \\ :t) def __fields__(:t) do [merged: :boolean, message: :string, sha: :string] end end