GhRepoModel

data class GhRepoModel(val id: Int, val nodeId: String, val name: String, val fullName: String, val owner: GhOwnerModel, val private: Boolean, val htmlUrl: String, val description: String? = null, val fork: Boolean, val url: String, val archiveUrl: String, val assigneesUrl: String, val blobsUrl: String, val branchesUrl: String, val collaboratorsUrl: String, val commentsUrl: String, val commitsUrl: String, val compareUrl: String, val contentsUrl: String, val contributorsUrl: String, val deploymentsUrl: String, val downloadsUrl: String, val eventsUrl: String, val forksUrl: String, val gitCommitsUrl: String, val gitRefsUrl: String, val gitTagsUrl: String, val gitUrl: String, val issueCommentUrl: String, val issueEventsUrl: String, val issuesUrl: String, val keysUrl: String, val labelsUrl: String, val languagesUrl: String, val mergesUrl: String, val milestonesUrl: String, val notificationsUrl: String, val pullsUrl: String, val releasesUrl: String, val sshUrl: String, val stargazersUrl: String, val statusesUrl: String, val subscribersUrl: String, val subscriptionUrl: String, val tagsUrl: String, val teamsUrl: String, val treesUrl: String, val cloneUrl: String, val mirrorUrl: String? = null, val hooksUrl: String, val svnUrl: String, val homepage: String? = null, val forksCount: Int, val forks: Int, val stargazersCount: Int, val watchersCount: Int, val watchers: Int, val size: Int, val defaultBranch: String, val openIssuesCount: Int, val openIssues: Int, val isTemplate: Boolean = false, val topics: List<String> = listOf(), val hasIssues: Boolean = true, val hasProjects: Boolean = true, val hasWiki: Boolean = true, val hasPages: Boolean, val hasDownloads: Boolean = true, val hasDiscussions: Boolean = false, val archived: Boolean = false, val disabled: Boolean, val visibility: String = "public", val pushedAt: String? = null, val createdAt: String? = null, val updatedAt: String? = null, val permissions: GhRepoModel.Permissions? = null, val allowRebaseMerge: Boolean = true, val tempCloneToken: String? = null, val allowSquashMerge: Boolean? = null, val allowAutoMerge: Boolean? = null, val deleteBranchOnMerge: Boolean? = null, val allowMergeCommit: Boolean? = null, val allowForking: Boolean, val subscribersCount: Int, val networkCount: Int, val license: GhRepoModel.License? = null, val organization: GhOwnerModel? = null)

Full Repository

Constructors

Link copied to clipboard
constructor(id: Int, nodeId: String, name: String, fullName: String, owner: GhOwnerModel, private: Boolean, htmlUrl: String, description: String? = null, fork: Boolean, url: String, archiveUrl: String, assigneesUrl: String, blobsUrl: String, branchesUrl: String, collaboratorsUrl: String, commentsUrl: String, commitsUrl: String, compareUrl: String, contentsUrl: String, contributorsUrl: String, deploymentsUrl: String, downloadsUrl: String, eventsUrl: String, forksUrl: String, gitCommitsUrl: String, gitRefsUrl: String, gitTagsUrl: String, gitUrl: String, issueCommentUrl: String, issueEventsUrl: String, issuesUrl: String, keysUrl: String, labelsUrl: String, languagesUrl: String, mergesUrl: String, milestonesUrl: String, notificationsUrl: String, pullsUrl: String, releasesUrl: String, sshUrl: String, stargazersUrl: String, statusesUrl: String, subscribersUrl: String, subscriptionUrl: String, tagsUrl: String, teamsUrl: String, treesUrl: String, cloneUrl: String, mirrorUrl: String? = null, hooksUrl: String, svnUrl: String, homepage: String? = null, forksCount: Int, forks: Int, stargazersCount: Int, watchersCount: Int, watchers: Int, size: Int, defaultBranch: String, openIssuesCount: Int, openIssues: Int, isTemplate: Boolean = false, topics: List<String> = listOf(), hasIssues: Boolean = true, hasProjects: Boolean = true, hasWiki: Boolean = true, hasPages: Boolean, hasDownloads: Boolean = true, hasDiscussions: Boolean = false, archived: Boolean = false, disabled: Boolean, visibility: String = "public", pushedAt: String? = null, createdAt: String? = null, updatedAt: String? = null, permissions: GhRepoModel.Permissions? = null, allowRebaseMerge: Boolean = true, tempCloneToken: String? = null, allowSquashMerge: Boolean? = null, allowAutoMerge: Boolean? = null, deleteBranchOnMerge: Boolean? = null, allowMergeCommit: Boolean? = null, allowForking: Boolean, subscribersCount: Int, networkCount: Int, license: GhRepoModel.License? = null, organization: GhOwnerModel? = null)

Types

Link copied to clipboard
data class License(val key: String, val name: String, val url: String? = null, val spdxId: String? = null, val nodeId: String)
Link copied to clipboard
data class Permissions(val pull: Boolean, val push: Boolean, val admin: Boolean)

Properties

Link copied to clipboard
val allowAutoMerge: Boolean? = null

Whether to allow Auto-merge to be used on pull requests (Example: false)

Link copied to clipboard

Whether to allow forking this repo

Link copied to clipboard

Whether to allow merge commits for pull requests (Example: true)

Link copied to clipboard

Whether to allow rebase merges for pull requests (Example: true)

Link copied to clipboard

Whether to allow squash merges for pull requests (Example: true)

Link copied to clipboard
val archived: Boolean = false

Whether the repository is archived

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/{archive_format}{/ref}")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/assignees{/user}")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/git/blobs{/sha}")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/branches{/branch}")

Link copied to clipboard

(Example: "https://github.com/octocat/Hello-World.git")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/collaborators{/collaborator}")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/comments{/number}")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/commits{/sha}")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/compare/{base}...{head}")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/contents/{+path}")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/contributors")

Link copied to clipboard
val createdAt: String? = null

(Example: "2011-01-26T19:01:12Z")

Link copied to clipboard

The default branch of the repository (Example: "master")

Link copied to clipboard

Whether to delete head branches when pull requests are merged (Example: false)

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/deployments")

Link copied to clipboard
val description: String? = null

(Example: "This your first repo!")

Link copied to clipboard

Returns whether this repository disabled

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/downloads")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/events")

Link copied to clipboard
Link copied to clipboard
val forks: Int
Link copied to clipboard

(Example: 9)

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/forks")

Link copied to clipboard

(Example: "octocat/Hello-World")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/git/commits{/sha}")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/git/refs{/sha}")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/git/tags{/sha}")

Link copied to clipboard

(Example: "git:github.com/octocat/Hello-World.git")

Link copied to clipboard
val hasDiscussions: Boolean = false

Whether discussions are enabled (Example: true)

Link copied to clipboard
val hasDownloads: Boolean = true

Whether downloads are enabled (Example: true)

Link copied to clipboard
val hasIssues: Boolean = true

Whether issues are enabled (Example: true)

Link copied to clipboard
Link copied to clipboard
val hasProjects: Boolean = true

Whether projects are enabled (Example: true)

Link copied to clipboard
val hasWiki: Boolean = true

Whether the wiki is enabled (Example: true)

Link copied to clipboard
val homepage: String? = null

(Example: "https://github.com")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/hooks")

Link copied to clipboard

(Example: "https://github.com/octocat/Hello-World")

Link copied to clipboard
val id: Int

Unique identifier of the repository (Example: 1296269)

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/issues/comments{/number}")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/issues/events{/number}")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/issues{/number}")

Link copied to clipboard
val isTemplate: Boolean = false

Whether this repository acts as a template that can be used to generate new repositories (Example: true)

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/keys{/key_id}")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/labels{/name}")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/languages")

Link copied to clipboard
Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/merges")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/milestones{/number}")

Link copied to clipboard
val mirrorUrl: String? = null

(Example: "git:git.example.com/octocat/Hello-World")

Link copied to clipboard

The name of the repository (Example: "Hello-World")

Link copied to clipboard
Link copied to clipboard

(Example: "MDEwOlJlcG9zaXRvcnkxMjk2MjY5")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/notifications{?since,all,participating}")

Link copied to clipboard
Link copied to clipboard

(Example: 0)

Link copied to clipboard
Link copied to clipboard

A GitHub user

Link copied to clipboard
Link copied to clipboard

Whether the repository is private or public

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/pulls{/number}")

Link copied to clipboard
val pushedAt: String? = null

(Example: "2011-01-26T19:06:43Z")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/releases{/id}")

Link copied to clipboard
val size: Int

The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0. (Example: 108)

Link copied to clipboard

(Example: "git@github.com:octocat/Hello-World.git")

Link copied to clipboard

(Example: 80)

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/stargazers")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/statuses/{sha}")

Link copied to clipboard
Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/subscribers")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/subscription")

Link copied to clipboard

(Example: "https://svn.github.com/octocat/Hello-World")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/tags")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/teams")

Link copied to clipboard
val tempCloneToken: String? = null
Link copied to clipboard

(Example: "octocat", "atom", "electron", "API")

Link copied to clipboard

(Example: "http://api.github.com/repos/octocat/Hello-World/git/trees{/sha}")

Link copied to clipboard
val updatedAt: String? = null

(Example: "2011-01-26T19:14:43Z")

Link copied to clipboard
val url: String

(Example: "https://api.github.com/repos/octocat/Hello-World")

Link copied to clipboard

The repository visibility: public, private, or internal (Example: "public")

Link copied to clipboard
Link copied to clipboard

(Example: 80)