Skip to content

GitHubTreeItem

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

public sealed record GitHubTreeItem

One entry of a repository tree.

Constructors

GitHubTreeItem(string, string, string, long?)

public GitHubTreeItem(string Path, string Type, string Sha, long? Size);

Parameters

  • Path (string) - Path inside the repository.
  • Type (string) - blob or tree (or commit for a submodule).
  • Sha (string) - The object's SHA.
  • Size (long?) - Size in bytes for a blob.

Properties

Path

public string Path { get; init; }

Path inside the repository.

Sha

public string Sha { get; init; }

The object's SHA.

Size

public long? Size { get; init; }

Size in bytes for a blob.

Type

public string Type { get; init; }

blob or tree (or commit for a submodule).