LandPrOutcome class
The result of a delivery method's REUSE-or-open — a url (with its number when the opener supplies one) on a reuse (reused true when an already-open PR was adopted) OR a fresh open, or a failureReason when neither.
Reuse is what makes delivery IDEMPOTENT across a rework round (bead tg-w3c):
round one's PR is still OPEN, and adopting it is a SUCCESS (the branch is
delivered and the PR is there), not a failure that escalates a DONE, approved
bead. The App-identity delivery ASKS GitHub for that PR before creating one,
so reuse no longer depends on recognising a creation refusal after the fact.
Constructors
- LandPrOutcome.failed(String reason)
-
Neither open nor reuse —
reasonis the opener failure delivery stamps.factory - LandPrOutcome.opened(String url, {int? number})
-
A PR was freshly opened at
url, carryingnumberwhen the opener supplied one (theghopener does not; the App opener always does).factory - LandPrOutcome.reused(String url, {required int number})
-
An already-open PR for the branch was REUSED (idempotent land) at
url. A reuse always names itsnumber— it was read off the PR itself.factory
Properties
- failureReason → String?
-
The failure reason; null on success.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- number → int?
-
The opened/reused PR number, when the opener supplied it.
final
- ok → bool
-
Whether delivery produced a PR (opened or reused).
no setter
- reused → bool
-
Whether an already-open PR was reused rather than freshly opened.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String?
-
The opened/reused PR url; null on failure.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited