API Reference
GitHubRepositoryForkSnapshotRecord
Canonical persisted observation of a fork at a point in time.
Inheritance
- Object
- GitHubRepositoryForkSnapshotRecord
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
Accepted by parameters
Constructors
public GitHubRepositoryForkSnapshotRecord(String id, String parentRepositoryNameWithOwner, String forkRepositoryNameWithOwner, DateTimeOffset capturedAtUtc, Double score, String tier, Int32 stars, Int32 forks, Int32 watchers, Int32 openIssues) #Initializes a new fork snapshot record.
Parameters
- id System.String
- Stable snapshot identifier.
- parentRepositoryNameWithOwner System.String
- Parent repository in owner/name form.
- forkRepositoryNameWithOwner System.String
- Fork repository in owner/name form.
- capturedAtUtc System.DateTimeOffset
- UTC time when the fork observation was captured.
- score System.Double
- Computed usefulness score.
- tier System.String
- Computed usefulness tier.
- stars System.Int32
- Fork star count.
- forks System.Int32
- Fork count of the fork itself.
- watchers System.Int32
- Fork watcher count.
- openIssues System.Int32
- Fork open issue count.
Methods
public static String CreateStableId(String parentRepositoryNameWithOwner, String forkRepositoryNameWithOwner, DateTimeOffset capturedAtUtc) #StringCreates a deterministic snapshot identifier from parent, fork, and capture time.
Parameters
- parentRepositoryNameWithOwner System.String
- Parent repository in owner/name form.
- forkRepositoryNameWithOwner System.String
- Fork repository in owner/name form.
- capturedAtUtc System.DateTimeOffset
- UTC capture time.
Returns
Stable fork snapshot identifier.
Inherited Methods
Properties
public String Id { get; } #Gets the stable snapshot identifier.
public String ParentRepositoryNameWithOwner { get; } #Gets the parent repository in owner/name form.
public String ForkRepositoryNameWithOwner { get; } #Gets the fork repository in owner/name form.
public DateTimeOffset CapturedAtUtc { get; } #Gets the UTC time when the observation was captured.
public Double Score { get; } #Gets the computed usefulness score.
public String Tier { get; } #Gets the computed usefulness tier.
public Int32 Stars { get; } #Gets the fork star count.
public Int32 Forks { get; } #Gets the fork count of the fork itself.
public Int32 Watchers { get; } #Gets the fork watcher count.
public Int32 OpenIssues { get; } #Gets the fork open issue count.
public String Url { get; set; } #Gets or sets the optional fork URL.
public String Description { get; set; } #Gets or sets the optional fork description.
public String PrimaryLanguage { get; set; } #Gets or sets the optional primary language.
public Nullable<DateTimeOffset> PushedAtUtc { get; set; } #Gets or sets the optional last pushed timestamp.
public Nullable<DateTimeOffset> UpdatedAtUtc { get; set; } #Gets or sets the optional last updated timestamp.
public Nullable<DateTimeOffset> CreatedAtUtc { get; set; } #Gets or sets the optional creation timestamp.
public Boolean IsArchived { get; set; } #Gets or sets whether the fork is archived.
public String ReasonsSummary { get; set; } #Gets or sets the compact reason summary used for the score.