Skip to content

RepoSnapshot

Namespace Nfty.Core.Publish.Community in assembly Nfty.Core.

public sealed record RepoSnapshot

Everything the scan reads about a user's nfty-public repository.

Constructors

RepoSnapshot(GitHubRepo, IReadOnlyList<GitHubTreeItem>, IReadOnlyList<string>, IReadOnlyList<GitHubRelease>, IReadOnlyList<string>, PublicRepoManifest?, IReadOnlyCollection<string>)

public RepoSnapshot(GitHubRepo Repo, IReadOnlyList<GitHubTreeItem> Tree, IReadOnlyList<string> Branches, IReadOnlyList<GitHubRelease> Releases, IReadOnlyList<string> Tags, PublicRepoManifest? Manifest, IReadOnlyCollection<string> ProtectedTags);

Parameters

  • Repo (GitHubRepo) - The repository.
  • Tree (IReadOnlyList<GitHubTreeItem>) - The default branch's tree, recursive.
  • Branches (IReadOnlyList<string>) - Every branch name.
  • Releases (IReadOnlyList<GitHubRelease>) - Every release with its files.
  • Tags (IReadOnlyList<string>) - Every tag name.
  • Manifest (PublicRepoManifest?) - The repository's nfty-public.json, or null when it is missing or not one nfty wrote.
  • ProtectedTags (IReadOnlyCollection<string>) - Release tags the gallery or an open pull request still depends on, which are never extras even when nfty-public.json does not list them (the live version while an update is open, the new one while it is).

Properties

Branches

public IReadOnlyList<string> Branches { get; init; }

Every branch name.

Manifest

public PublicRepoManifest? Manifest { get; init; }

The repository's nfty-public.json, or null when it is missing or not one nfty wrote.

ProtectedTags

public IReadOnlyCollection<string> ProtectedTags { get; init; }

Release tags the gallery or an open pull request still depends on, which are never extras even when nfty-public.json does not list them (the live version while an update is open, the new one while it is).

Releases

public IReadOnlyList<GitHubRelease> Releases { get; init; }

Every release with its files.

Repo

public GitHubRepo Repo { get; init; }

The repository.

Tags

public IReadOnlyList<string> Tags { get; init; }

Every tag name.

Tree

public IReadOnlyList<GitHubTreeItem> Tree { get; init; }

The default branch's tree, recursive.