RepoHealth class

GitHub-specific health data for a repository.

Null fields indicate the data was unavailable — either no repository URL was listed, the repo is not hosted on GitHub, or the API rate limit was hit.

Constructors

RepoHealth({int? openIssues, int? closedIssues, int? openPullRequests, int? stars, int? forks, int? contributors, double? avgIssueCloseTimeDays, DateTime? lastCommitDate, bool? isArchived, bool? hasIssuesEnabled, String? defaultBranch})
Creates a RepoHealth.
const

Properties

avgIssueCloseTimeDays double?
Average days from issue open to close across the last 100 closed issues.
final
closedIssues int?
Count of the last 100 closed issues used for latency averaging.
final
contributors int?
Number of unique contributors (capped at the GitHub API page size).
final
defaultBranch String?
Name of the default branch (e.g. main, master).
final
forks int?
GitHub fork count.
final
hashCode int
The hash code for this object.
no setterinherited
hasIssuesEnabled bool?
true if the GitHub Issues tab is enabled for this repository.
final
isArchived bool?
true if the repository has been archived on GitHub.
final
issueResolutionRate double?
Fraction of issues closed vs total, in 0.0, 1.0.
no setter
lastCommitDate DateTime?
Date of the most recent commit on the default branch.
final
openIssues int?
Number of currently open issues.
final
openPullRequests int?
Number of currently open pull requests.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stars int?
GitHub star count.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited