View on GitHub

GithubClient

A C# Dll library for working with the Github Rest API

GithubClient

GithubClient.Methods.Trees

Trees.GetTree(string, Repository, string, bool) Method

Returns a repository Tree from the Github API

public static System.Threading.Tasks.Task<GithubClient.Git.BaseTree>? GetTree(string PAT, GithubClient.Repositories.Repository repository, string Ref="main", bool Recursive=true);

Parameters

PAT System.String

Personal Access Token

repository Repository

A Repository object

Ref System.String

The name of the commit/branch/tag. Default: the repository’s default branch (usually master)

Recursive System.Boolean

Setting this parameter to any value returns the objects or subtrees referenced by the tree specified in :tree_sha

Returns

System.Threading.Tasks.Task<BaseTree> A tree object

See Also