Class: Agentilda::Resync::Prs::Change

Inherits:
Data
  • Object
show all
Defined in:
lib/agentilda/resync.rb

Overview

A proposed retitle.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#adoptedObject (readonly)

Returns the value of attribute adopted

Returns:

  • (Object)

    the current value of adopted



165
166
167
# File 'lib/agentilda/resync.rb', line 165

def adopted
  @adopted
end

#ambiguousBoolean (readonly)

Returns a human must decide; never edited.

Returns:

  • (Boolean)

    a human must decide; never edited



165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/agentilda/resync.rb', line 165

Change = Data.define(:number, :title, :new_title, :ordinal, :reason, :ambiguous, :assumed, :adopted) do
  # @return [Boolean]
  def ambiguous? = ambiguous

  # @return [Boolean]
  def assumed? = assumed

  # @return [Boolean] whether a plan folder was minted for this one
  def adopted? = adopted

  # @return [Boolean] safe to apply without a human looking
  def applicable? = !ambiguous && !new_title.nil?
end

#assumedBoolean (readonly)

Returns "no plan" was inferred, not asserted by the author.

Returns:

  • (Boolean)

    "no plan" was inferred, not asserted by the author



165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/agentilda/resync.rb', line 165

Change = Data.define(:number, :title, :new_title, :ordinal, :reason, :ambiguous, :assumed, :adopted) do
  # @return [Boolean]
  def ambiguous? = ambiguous

  # @return [Boolean]
  def assumed? = assumed

  # @return [Boolean] whether a plan folder was minted for this one
  def adopted? = adopted

  # @return [Boolean] safe to apply without a human looking
  def applicable? = !ambiguous && !new_title.nil?
end

#new_titleString? (readonly)

Returns nil when nothing may safely be done.

Returns:

  • (String, nil)

    nil when nothing may safely be done



165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/agentilda/resync.rb', line 165

Change = Data.define(:number, :title, :new_title, :ordinal, :reason, :ambiguous, :assumed, :adopted) do
  # @return [Boolean]
  def ambiguous? = ambiguous

  # @return [Boolean]
  def assumed? = assumed

  # @return [Boolean] whether a plan folder was minted for this one
  def adopted? = adopted

  # @return [Boolean] safe to apply without a human looking
  def applicable? = !ambiguous && !new_title.nil?
end

#numberInteger (readonly)

Returns the pull request.

Returns:

  • (Integer)

    the pull request



165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/agentilda/resync.rb', line 165

Change = Data.define(:number, :title, :new_title, :ordinal, :reason, :ambiguous, :assumed, :adopted) do
  # @return [Boolean]
  def ambiguous? = ambiguous

  # @return [Boolean]
  def assumed? = assumed

  # @return [Boolean] whether a plan folder was minted for this one
  def adopted? = adopted

  # @return [Boolean] safe to apply without a human looking
  def applicable? = !ambiguous && !new_title.nil?
end

#ordinalAgentilda::Ordinal? (readonly)

Returns:



165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/agentilda/resync.rb', line 165

Change = Data.define(:number, :title, :new_title, :ordinal, :reason, :ambiguous, :assumed, :adopted) do
  # @return [Boolean]
  def ambiguous? = ambiguous

  # @return [Boolean]
  def assumed? = assumed

  # @return [Boolean] whether a plan folder was minted for this one
  def adopted? = adopted

  # @return [Boolean] safe to apply without a human looking
  def applicable? = !ambiguous && !new_title.nil?
end

#reasonString (readonly)

Returns how it was resolved, or why it was not.

Returns:

  • (String)

    how it was resolved, or why it was not



165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/agentilda/resync.rb', line 165

Change = Data.define(:number, :title, :new_title, :ordinal, :reason, :ambiguous, :assumed, :adopted) do
  # @return [Boolean]
  def ambiguous? = ambiguous

  # @return [Boolean]
  def assumed? = assumed

  # @return [Boolean] whether a plan folder was minted for this one
  def adopted? = adopted

  # @return [Boolean] safe to apply without a human looking
  def applicable? = !ambiguous && !new_title.nil?
end

#titleString (readonly)

Returns as it stands.

Returns:

  • (String)

    as it stands



165
166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/agentilda/resync.rb', line 165

Change = Data.define(:number, :title, :new_title, :ordinal, :reason, :ambiguous, :assumed, :adopted) do
  # @return [Boolean]
  def ambiguous? = ambiguous

  # @return [Boolean]
  def assumed? = assumed

  # @return [Boolean] whether a plan folder was minted for this one
  def adopted? = adopted

  # @return [Boolean] safe to apply without a human looking
  def applicable? = !ambiguous && !new_title.nil?
end

Instance Method Details

#adopted?Boolean

Returns whether a plan folder was minted for this one.

Returns:

  • (Boolean)

    whether a plan folder was minted for this one



173
# File 'lib/agentilda/resync.rb', line 173

def adopted? = adopted

#ambiguous?Boolean

Returns:

  • (Boolean)


167
# File 'lib/agentilda/resync.rb', line 167

def ambiguous? = ambiguous

#applicable?Boolean

Returns safe to apply without a human looking.

Returns:

  • (Boolean)

    safe to apply without a human looking



176
# File 'lib/agentilda/resync.rb', line 176

def applicable? = !ambiguous && !new_title.nil?

#assumed?Boolean

Returns:

  • (Boolean)


170
# File 'lib/agentilda/resync.rb', line 170

def assumed? = assumed