OrganizationRepoLists class

The repositories the registered organizations currently offer, asked for once per organization and run.

Whether an organization owns a repository is decided by the list the platform reports — the same list gg do upgrade ocean syncs the ocean against — and not by whether its url answers. A url keeps answering long after the repository is gone: GitHub redirects a renamed or transferred repository from its former name, so git ls-remote on the old organization still succeeds. Deciding by that url is what made gg do add <name> offer a repository under an organization the sync had just moved it out of.

One gg do add may ask about many names — every missing transitive dependency is looked up the same way — so the lists are memoized: each organization is asked once, however many names are checked against it.

Constructors

OrganizationRepoLists({GitHubPlatform? gitHubPlatform, AzureDevOpsPlatform? azureDevOpsPlatform})
Constructor.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

failureOf(Organization org) → String?
Why reposOf answered null for org — the error of the platform CLI, or that its platform cannot be listed at all. Null while reposOf was not awaited for it, and for an organization that was listed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
owns(Organization org, String repoName) → Future<bool?>
Whether org currently offers a repository named repoName, or null when the platform cannot say (see reposOf).
reposOf(Organization org) → Future<List<Repository>?>
The repositories org offers, or null when the platform cannot say — its CLI is missing or unauthenticated, or the platform is unknown.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited