lib/schemas/repository/rule/commit_message_pattern.ex
defmodule GitHub.Repository.Rule.CommitMessagePattern do
@moduledoc """
Provides struct and type for a Repository.Rule.CommitMessagePattern
"""
use GitHub.Encoder
@type t :: %__MODULE__{__info__: map, parameters: map | nil, type: String.t()}
defstruct [:__info__, :parameters, :type]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[parameters: :map, type: {:const, "commit_message_pattern"}]
end
end