Class GitHubRepository
Repository information from GitHub API.
public record GitHubRepository : IEquatable<GitHubRepository>
- Inheritance
-
GitHubRepository
- Implements
- Inherited Members
Constructors
GitHubRepository(long, string, string, string, string, bool, long, string)
Repository information from GitHub API.
public GitHubRepository(long Id, string FullName, string HtmlUrl, string CloneUrl, string DefaultBranch, bool IsPrivate, long OwnerId, string OwnerLogin)
Parameters
IdlongGitHub's internal ID for the repository.
FullNamestringFull repository name (owner/repo).
HtmlUrlstringURL to the repository on GitHub.
CloneUrlstringGit clone URL for the repository.
DefaultBranchstringDefault branch of the repository.
IsPrivateboolWhether the repository is private.
OwnerIdlongGitHub's internal ID for the owner.
OwnerLoginstringGitHub username or organization name of the owner.
Properties
CloneUrl
Git clone URL for the repository.
public string CloneUrl { get; init; }
Property Value
DefaultBranch
Default branch of the repository.
public string DefaultBranch { get; init; }
Property Value
FullName
Full repository name (owner/repo).
public string FullName { get; init; }
Property Value
HtmlUrl
URL to the repository on GitHub.
public string HtmlUrl { get; init; }
Property Value
Id
GitHub's internal ID for the repository.
public long Id { get; init; }
Property Value
IsPrivate
Whether the repository is private.
public bool IsPrivate { get; init; }
Property Value
OwnerId
GitHub's internal ID for the owner.
public long OwnerId { get; init; }
Property Value
OwnerLogin
GitHub username or organization name of the owner.
public string OwnerLogin { get; init; }