Repository class

Model class for a repository.

Annotations

Constructors

Repository({String name = '', int id = 0, String fullName = '', UserInformation? owner, String htmlUrl = '', String description = '', String cloneUrl = '', String gitUrl = '', String sshUrl = '', String svnUrl = '', String defaultBranch = '', DateTime? createdAt, bool isPrivate = false, bool isFork = false, int stargazersCount = 0, int watchersCount = 0, String language = '', bool hasWiki = false, bool hasDownloads = false, int forksCount = 0, int openIssuesCount = 0, int subscribersCount = 0, int networkCount = 0, bool hasIssues = false, int size = 0, bool archived = false, bool disabled = false, String homepage = '', DateTime? updatedAt, DateTime? pushedAt, LicenseKind? license, bool hasPages = false, RepositoryPermissions? permissions, bool? allowAutoMerge, bool? allowForking, bool? allowMergeCommit, bool? allowRebaseMerge, bool? allowSquashMerge, bool? allowUpdateBranch, bool? anonymousAccessEnabled, String? archiveUrl, String? assigneesUrl, String? blobsUrl, String? branchesUrl, String? collaboratorsUrl, String? commentsUrl, String? commitsUrl, String? compareUrl, String? contentsUrl, String? contributorsUrl, bool? deleteBranchOnMerge, String? deploymentsUrl, String? downloadsUrl, String? eventsUrl, int? forks, String? forksUrl, String? gitCommitsUrl, String? gitRefsUrl, String? gitTagsUrl, bool? hasDiscussions, bool? hasProjects, String? hooksUrl, bool? isTemplate, String? issueCommentUrl, String? issueEventsUrl, String? issuesUrl, String? keysUrl, String? labelsUrl, String? languagesUrl, String? masterBranch, String? mergeCommitMessage, String? mergeCommitTitle, String? mergesUrl, String? milestonesUrl, String? mirrorUrl, String? nodeId, String? notificationsUrl, int? openIssues, User? organization, String? pullsUrl, String? releasesUrl, String? squashMergeCommitMessage, String? squashMergeCommitTitle, String? stargazersUrl, DateTime? starredAt, String? statusesUrl, String? subscribersUrl, String? subscriptionUrl, String? tagsUrl, String? teamsUrl, String? tempCloneToken, TemplateRepository? templateRepository, List<String>? topics, String? treesUrl, String? url, String? visibility, int? watchers, bool? webCommitSignoffRequired})
Repository.fromJson(Map<String, dynamic> input)
factory

Properties

allowAutoMerge ↔ bool?
Whether to allow Auto-merge to be used on pull requests.
getter/setter pair
allowForking ↔ bool?
Whether to allow forking this repo
getter/setter pair
allowMergeCommit ↔ bool?
Whether to allow merge commits for pull requests.
getter/setter pair
allowRebaseMerge ↔ bool?
Whether to allow rebase merges for pull requests.
getter/setter pair
allowSquashMerge ↔ bool?
Whether to allow squash merges for pull requests.
getter/setter pair
allowUpdateBranch ↔ bool?
Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging.
getter/setter pair
anonymousAccessEnabled ↔ bool?
Whether anonymous git access is enabled for this repository
getter/setter pair
archived ↔ bool
getter/setter pair
archiveUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}
getter/setter pair
assigneesUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/assignees{/user}
getter/setter pair
blobsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}
getter/setter pair
branchesUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/branches{/branch}
getter/setter pair
cloneUrl ↔ String
getter/setter pair
collaboratorsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}
getter/setter pair
commentsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/comments{/number}
getter/setter pair
commitsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/commits{/sha}
getter/setter pair
compareUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}
getter/setter pair
contentsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/contents/{+path}
getter/setter pair
contributorsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/contributors
getter/setter pair
createdAt ↔ DateTime?
The time the repository was created at
getter/setter pair
defaultBranch ↔ String
Repository Default Branch
getter/setter pair
deleteBranchOnMerge ↔ bool?
Whether to delete head branches when pull requests are merged
getter/setter pair
deploymentsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/deployments
getter/setter pair
description ↔ String
Repository Description
getter/setter pair
disabled ↔ bool
getter/setter pair
downloadsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/downloads
getter/setter pair
eventsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/events
getter/setter pair
forks ↔ int?
getter/setter pair
forksCount ↔ int
Number of Forks
getter/setter pair
forksUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/forks
getter/setter pair
fullName ↔ String
Full Repository Name
getter/setter pair
gitCommitsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}
getter/setter pair
gitRefsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}
getter/setter pair
gitTagsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}
getter/setter pair
gitUrl ↔ String
getter/setter pair
hasDiscussions ↔ bool?
Whether discussions are enabled.
getter/setter pair
hasDownloads ↔ bool
If the Repository has any Downloads
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hasIssues ↔ bool
If the Repository has Issues Enabled
getter/setter pair
hasPages ↔ bool
If the Repository has any Github Pages
getter/setter pair
hasProjects ↔ bool?
Whether projects are enabled.
getter/setter pair
hasWiki ↔ bool
If the Repository has the Wiki Enabled
getter/setter pair
homepage ↔ String
Url to the Repository Homepage
getter/setter pair
hooksUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/hooks
getter/setter pair
htmlUrl ↔ String
Url to the GitHub Repository Page
getter/setter pair
id ↔ int
Repository ID
getter/setter pair
isFork ↔ bool
If the Repository is a fork
getter/setter pair
isPrivate ↔ bool
If the Repository is Private
getter/setter pair
issueCommentUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}
getter/setter pair
issueEventsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/issues/events{/number}
getter/setter pair
issuesUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/issues{/number}
getter/setter pair
isTemplate ↔ bool?
Whether this repository acts as a template that can be used to generate new repositories.
getter/setter pair
keysUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/keys{/key_id}
getter/setter pair
labelsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/labels{/name}
getter/setter pair
language ↔ String
Repository Language
getter/setter pair
languagesUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/languages
getter/setter pair
license ↔ LicenseKind?
getter/setter pair
masterBranch ↔ String?
getter/setter pair
mergeCommitMessage ↔ String?
The default value for a merge commit message.
getter/setter pair
mergeCommitTitle ↔ String?
The default value for a merge commit title.
getter/setter pair
mergesUrl ↔ String?
Format: uri
getter/setter pair
milestonesUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/milestones{/number}
getter/setter pair
mirrorUrl ↔ String?
Format: uri
getter/setter pair
name ↔ String
Repository Name
getter/setter pair
networkCount ↔ int
Number of users in the network
getter/setter pair
nodeId ↔ String?
Example: MDEwOlJlcG9zaXRvcnkxMjk2MjY5
getter/setter pair
notificationsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}
getter/setter pair
openIssues ↔ int?
getter/setter pair
openIssuesCount ↔ int
Number of Open Issues
getter/setter pair
organization ↔ User?
getter/setter pair
owner ↔ UserInformation?
Repository Owner
getter/setter pair
permissions ↔ RepositoryPermissions?
getter/setter pair
pullsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/pulls{/number}
getter/setter pair
pushedAt ↔ DateTime?
The last time the repository was pushed at
getter/setter pair
releasesUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/releases{/id}
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size ↔ int
Repository Size The size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.
getter/setter pair
squashMergeCommitMessage ↔ String?
The default value for a squash merge commit message:
getter/setter pair
squashMergeCommitTitle ↔ String?
The default value for a squash merge commit title:
getter/setter pair
sshUrl ↔ String
getter/setter pair
stargazersCount ↔ int
Repository Stars
getter/setter pair
stargazersUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/stargazers
getter/setter pair
starredAt ↔ DateTime?
getter/setter pair
statusesUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/statuses/{sha}
getter/setter pair
subscribersCount ↔ int
Number of Subscribers
getter/setter pair
subscribersUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/subscribers
getter/setter pair
subscriptionUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/subscription
getter/setter pair
svnUrl ↔ String
getter/setter pair
tagsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/tags
getter/setter pair
teamsUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/teams
getter/setter pair
tempCloneToken ↔ String?
getter/setter pair
templateRepository ↔ TemplateRepository?
getter/setter pair
topics ↔ List<String>?
getter/setter pair
treesUrl ↔ String?
Example: http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}
getter/setter pair
updatedAt ↔ DateTime?
getter/setter pair
url ↔ String?
Example: https://api.github.com/repos/octocat/Hello-World
getter/setter pair
visibility ↔ String?
The repository visibility: public, private, or internal.
getter/setter pair
watchers ↔ int?
getter/setter pair
watchersCount ↔ int
Repository Watchers
getter/setter pair
webCommitSignoffRequired ↔ bool?
Whether to require contributors to sign off on web-based commits
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
slug() → RepositorySlug
Gets the Repository Slug (Full Name).
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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