Class: Agentilda::Resync::Prs::Change
- Inherits:
-
Data
- Object
- Data
- Agentilda::Resync::Prs::Change
- Defined in:
- lib/agentilda/resync.rb
Overview
A proposed retitle.
Instance Attribute Summary collapse
-
#adopted ⇒ Object
readonly
Returns the value of attribute adopted.
-
#ambiguous ⇒ Boolean
readonly
A human must decide; never edited.
-
#assumed ⇒ Boolean
readonly
"no plan" was inferred, not asserted by the author.
-
#new_title ⇒ String?
readonly
Nil when nothing may safely be done.
-
#number ⇒ Integer
readonly
The pull request.
- #ordinal ⇒ Agentilda::Ordinal? readonly
-
#reason ⇒ String
readonly
How it was resolved, or why it was not.
-
#title ⇒ String
readonly
As it stands.
Instance Method Summary collapse
-
#adopted? ⇒ Boolean
Whether a plan folder was minted for this one.
- #ambiguous? ⇒ Boolean
-
#applicable? ⇒ Boolean
Safe to apply without a human looking.
- #assumed? ⇒ Boolean
Instance Attribute Details
#adopted ⇒ Object (readonly)
Returns the value of attribute adopted
165 166 167 |
# File 'lib/agentilda/resync.rb', line 165 def adopted @adopted end |
#ambiguous ⇒ Boolean (readonly)
Returns 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 |
#assumed ⇒ Boolean (readonly)
Returns "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_title ⇒ String? (readonly)
Returns 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 |
#number ⇒ Integer (readonly)
Returns 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 |
#ordinal ⇒ Agentilda::Ordinal? (readonly)
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 |
#reason ⇒ String (readonly)
Returns 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 |
#title ⇒ String (readonly)
Returns 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.
173 |
# File 'lib/agentilda/resync.rb', line 173 def adopted? = adopted |
#ambiguous? ⇒ Boolean
167 |
# File 'lib/agentilda/resync.rb', line 167 def ambiguous? = ambiguous |
#applicable? ⇒ Boolean
Returns safe to apply without a human looking.
176 |
# File 'lib/agentilda/resync.rb', line 176 def applicable? = !ambiguous && !new_title.nil? |
#assumed? ⇒ Boolean
170 |
# File 'lib/agentilda/resync.rb', line 170 def assumed? = assumed |