GetRepositoryResult

data class GetRepositoryResult(val allowAutoMerge: Boolean, val allowMergeCommit: Boolean, val allowRebaseMerge: Boolean, val allowSquashMerge: Boolean, val archived: Boolean, val defaultBranch: String, val description: String? = null, val fork: Boolean, val fullName: String, val gitCloneUrl: String, val hasDiscussions: Boolean, val hasDownloads: Boolean, val hasIssues: Boolean, val hasProjects: Boolean, val hasWiki: Boolean, val homepageUrl: String? = null, val htmlUrl: String, val httpCloneUrl: String, val id: String, val isTemplate: Boolean, val mergeCommitMessage: String, val mergeCommitTitle: String, val name: String, val nodeId: String, val pages: List<GetRepositoryPage>, val primaryLanguage: String, val private: Boolean, val repoId: Int, val repositoryLicenses: List<GetRepositoryRepositoryLicense>, val squashMergeCommitMessage: String, val squashMergeCommitTitle: String, val sshCloneUrl: String, val svnUrl: String, val template: GetRepositoryTemplate, val topics: List<String>, val visibility: String)

A collection of values returned by getRepository.

Constructors

Link copied to clipboard
constructor(allowAutoMerge: Boolean, allowMergeCommit: Boolean, allowRebaseMerge: Boolean, allowSquashMerge: Boolean, archived: Boolean, defaultBranch: String, description: String? = null, fork: Boolean, fullName: String, gitCloneUrl: String, hasDiscussions: Boolean, hasDownloads: Boolean, hasIssues: Boolean, hasProjects: Boolean, hasWiki: Boolean, homepageUrl: String? = null, htmlUrl: String, httpCloneUrl: String, id: String, isTemplate: Boolean, mergeCommitMessage: String, mergeCommitTitle: String, name: String, nodeId: String, pages: List<GetRepositoryPage>, primaryLanguage: String, private: Boolean, repoId: Int, repositoryLicenses: List<GetRepositoryRepositoryLicense>, squashMergeCommitMessage: String, squashMergeCommitTitle: String, sshCloneUrl: String, svnUrl: String, template: GetRepositoryTemplate, topics: List<String>, visibility: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the repository allows auto-merging pull requests.

Link copied to clipboard

Whether the repository allows merge commits.

Link copied to clipboard

Whether the repository allows rebase merges.

Link copied to clipboard

Whether the repository allows squash merges.

Link copied to clipboard

Whether the repository is archived.

Link copied to clipboard

The name of the default branch of the repository.

Link copied to clipboard
val description: String? = null

A description of the license.

Link copied to clipboard

Whether the repository is a fork.

Link copied to clipboard
Link copied to clipboard

URL that can be provided to git clone to clone the repository anonymously via the git protocol.

Link copied to clipboard

Whether the repository has GitHub Discussions enabled.

Link copied to clipboard

Whether the repository has Downloads feature enabled.

Link copied to clipboard

Whether the repository has GitHub Issues enabled.

Link copied to clipboard

Whether the repository has the GitHub Projects enabled.

Link copied to clipboard

Whether the repository has the GitHub Wiki enabled.

Link copied to clipboard
val homepageUrl: String? = null

URL of a page describing the project.

Link copied to clipboard

The URL to view the license details on GitHub.

Link copied to clipboard

URL that can be provided to git clone to clone the repository via HTTPS.

Link copied to clipboard
val id: String

The provider-assigned unique ID for this managed resource.

Link copied to clipboard

Whether the repository is a template repository.

Link copied to clipboard

The default value for a merge commit message.

Link copied to clipboard

The default value for a merge commit title.

Link copied to clipboard

The name of the license (e.g., "Apache License 2.0").

Link copied to clipboard

GraphQL global node id for use with v4 API

Link copied to clipboard

The repository's GitHub Pages configuration.

Link copied to clipboard

The primary language used in the repository.

Link copied to clipboard

Whether the repository is private.

Link copied to clipboard
val repoId: Int

GitHub ID for the repository

Link copied to clipboard

An Array of GitHub repository licenses. Each repository_license block consists of the fields documented below.

Link copied to clipboard

The default value for a squash merge commit message.

Link copied to clipboard

The default value for a squash merge commit title.

Link copied to clipboard

URL that can be provided to git clone to clone the repository via SSH.

Link copied to clipboard

URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.

Link copied to clipboard

The repository source template configuration.

Link copied to clipboard

The list of topics of the repository.

Link copied to clipboard

Whether the repository is public, private or internal.