1. Packages
  2. Github Provider
  3. API Docs
  4. getRepository
GitHub v6.7.0 published on Friday, Feb 28, 2025 by Pulumi

github.getRepository

Explore with Pulumi AI

GitHub v6.7.0 published on Friday, Feb 28, 2025 by Pulumi

Use this data source to retrieve information about a GitHub repository.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";

const example = github.getRepository({
    fullName: "hashicorp/terraform",
});
Copy
import pulumi
import pulumi_github as github

example = github.get_repository(full_name="hashicorp/terraform")
Copy
package main

import (
	"github.com/pulumi/pulumi-github/sdk/v6/go/github"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := github.LookupRepository(ctx, &github.LookupRepositoryArgs{
			FullName: pulumi.StringRef("hashicorp/terraform"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Github = Pulumi.Github;

return await Deployment.RunAsync(() => 
{
    var example = Github.GetRepository.Invoke(new()
    {
        FullName = "hashicorp/terraform",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.GithubFunctions;
import com.pulumi.github.inputs.GetRepositoryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = GithubFunctions.getRepository(GetRepositoryArgs.builder()
            .fullName("hashicorp/terraform")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: github:getRepository
      arguments:
        fullName: hashicorp/terraform
Copy

Using getRepository

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getRepository(args: GetRepositoryArgs, opts?: InvokeOptions): Promise<GetRepositoryResult>
function getRepositoryOutput(args: GetRepositoryOutputArgs, opts?: InvokeOptions): Output<GetRepositoryResult>
Copy
def get_repository(description: Optional[str] = None,
                   full_name: Optional[str] = None,
                   homepage_url: Optional[str] = None,
                   name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetRepositoryResult
def get_repository_output(description: Optional[pulumi.Input[str]] = None,
                   full_name: Optional[pulumi.Input[str]] = None,
                   homepage_url: Optional[pulumi.Input[str]] = None,
                   name: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryResult]
Copy
func LookupRepository(ctx *Context, args *LookupRepositoryArgs, opts ...InvokeOption) (*LookupRepositoryResult, error)
func LookupRepositoryOutput(ctx *Context, args *LookupRepositoryOutputArgs, opts ...InvokeOption) LookupRepositoryResultOutput
Copy

> Note: This function is named LookupRepository in the Go SDK.

public static class GetRepository 
{
    public static Task<GetRepositoryResult> InvokeAsync(GetRepositoryArgs args, InvokeOptions? opts = null)
    public static Output<GetRepositoryResult> Invoke(GetRepositoryInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
public static Output<GetRepositoryResult> getRepository(GetRepositoryArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: github:index/getRepository:getRepository
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Description string
A description of the license.
FullName string
Full name of the repository (in org/name format).
HomepageUrl string
URL of a page describing the project.
Name string
The name of the repository.
Description string
A description of the license.
FullName string
Full name of the repository (in org/name format).
HomepageUrl string
URL of a page describing the project.
Name string
The name of the repository.
description String
A description of the license.
fullName String
Full name of the repository (in org/name format).
homepageUrl String
URL of a page describing the project.
name String
The name of the repository.
description string
A description of the license.
fullName string
Full name of the repository (in org/name format).
homepageUrl string
URL of a page describing the project.
name string
The name of the repository.
description str
A description of the license.
full_name str
Full name of the repository (in org/name format).
homepage_url str
URL of a page describing the project.
name str
The name of the repository.
description String
A description of the license.
fullName String
Full name of the repository (in org/name format).
homepageUrl String
URL of a page describing the project.
name String
The name of the repository.

getRepository Result

The following output properties are available:

AllowAutoMerge bool
Whether the repository allows auto-merging pull requests.
AllowMergeCommit bool
Whether the repository allows merge commits.
AllowRebaseMerge bool
Whether the repository allows rebase merges.
AllowSquashMerge bool
Whether the repository allows squash merges.
AllowUpdateBranch bool
Archived bool
Whether the repository is archived.
DefaultBranch string
The name of the default branch of the repository.
DeleteBranchOnMerge bool
Fork bool
Whether the repository is a fork.
FullName string
GitCloneUrl string
URL that can be provided to git clone to clone the repository anonymously via the git protocol.
HasDiscussions bool
Whether the repository has GitHub Discussions enabled.
HasDownloads bool
Whether the repository has Downloads feature enabled.
HasIssues bool
Whether the repository has GitHub Issues enabled.
HasProjects bool
Whether the repository has the GitHub Projects enabled.
HasWiki bool
Whether the repository has the GitHub Wiki enabled.
HtmlUrl string
The URL to view the license details on GitHub.
HttpCloneUrl string
URL that can be provided to git clone to clone the repository via HTTPS.
Id string
The provider-assigned unique ID for this managed resource.
IsTemplate bool
Whether the repository is a template repository.
MergeCommitMessage string
The default value for a merge commit message.
MergeCommitTitle string
The default value for a merge commit title.
Name string
The name of the license (e.g., "Apache License 2.0").
NodeId string
GraphQL global node id for use with v4 API
Pages List<GetRepositoryPage>
The repository's GitHub Pages configuration.
PrimaryLanguage string
The primary language used in the repository.
Private bool
Whether the repository is private.
RepoId int
GitHub ID for the repository
RepositoryLicenses List<GetRepositoryRepositoryLicense>
An Array of GitHub repository licenses. Each repository_license block consists of the fields documented below.
SquashMergeCommitMessage string
The default value for a squash merge commit message.
SquashMergeCommitTitle string
The default value for a squash merge commit title.
SshCloneUrl string
URL that can be provided to git clone to clone the repository via SSH.
SvnUrl string
URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.
Templates List<GetRepositoryTemplate>
The repository source template configuration.
Topics List<string>
The list of topics of the repository.
Visibility string
Whether the repository is public, private or internal.
Description string
A description of the license.
HomepageUrl string
URL of a page describing the project.
AllowAutoMerge bool
Whether the repository allows auto-merging pull requests.
AllowMergeCommit bool
Whether the repository allows merge commits.
AllowRebaseMerge bool
Whether the repository allows rebase merges.
AllowSquashMerge bool
Whether the repository allows squash merges.
AllowUpdateBranch bool
Archived bool
Whether the repository is archived.
DefaultBranch string
The name of the default branch of the repository.
DeleteBranchOnMerge bool
Fork bool
Whether the repository is a fork.
FullName string
GitCloneUrl string
URL that can be provided to git clone to clone the repository anonymously via the git protocol.
HasDiscussions bool
Whether the repository has GitHub Discussions enabled.
HasDownloads bool
Whether the repository has Downloads feature enabled.
HasIssues bool
Whether the repository has GitHub Issues enabled.
HasProjects bool
Whether the repository has the GitHub Projects enabled.
HasWiki bool
Whether the repository has the GitHub Wiki enabled.
HtmlUrl string
The URL to view the license details on GitHub.
HttpCloneUrl string
URL that can be provided to git clone to clone the repository via HTTPS.
Id string
The provider-assigned unique ID for this managed resource.
IsTemplate bool
Whether the repository is a template repository.
MergeCommitMessage string
The default value for a merge commit message.
MergeCommitTitle string
The default value for a merge commit title.
Name string
The name of the license (e.g., "Apache License 2.0").
NodeId string
GraphQL global node id for use with v4 API
Pages []GetRepositoryPage
The repository's GitHub Pages configuration.
PrimaryLanguage string
The primary language used in the repository.
Private bool
Whether the repository is private.
RepoId int
GitHub ID for the repository
RepositoryLicenses []GetRepositoryRepositoryLicense
An Array of GitHub repository licenses. Each repository_license block consists of the fields documented below.
SquashMergeCommitMessage string
The default value for a squash merge commit message.
SquashMergeCommitTitle string
The default value for a squash merge commit title.
SshCloneUrl string
URL that can be provided to git clone to clone the repository via SSH.
SvnUrl string
URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.
Templates []GetRepositoryTemplate
The repository source template configuration.
Topics []string
The list of topics of the repository.
Visibility string
Whether the repository is public, private or internal.
Description string
A description of the license.
HomepageUrl string
URL of a page describing the project.
allowAutoMerge Boolean
Whether the repository allows auto-merging pull requests.
allowMergeCommit Boolean
Whether the repository allows merge commits.
allowRebaseMerge Boolean
Whether the repository allows rebase merges.
allowSquashMerge Boolean
Whether the repository allows squash merges.
allowUpdateBranch Boolean
archived Boolean
Whether the repository is archived.
defaultBranch String
The name of the default branch of the repository.
deleteBranchOnMerge Boolean
fork Boolean
Whether the repository is a fork.
fullName String
gitCloneUrl String
URL that can be provided to git clone to clone the repository anonymously via the git protocol.
hasDiscussions Boolean
Whether the repository has GitHub Discussions enabled.
hasDownloads Boolean
Whether the repository has Downloads feature enabled.
hasIssues Boolean
Whether the repository has GitHub Issues enabled.
hasProjects Boolean
Whether the repository has the GitHub Projects enabled.
hasWiki Boolean
Whether the repository has the GitHub Wiki enabled.
htmlUrl String
The URL to view the license details on GitHub.
httpCloneUrl String
URL that can be provided to git clone to clone the repository via HTTPS.
id String
The provider-assigned unique ID for this managed resource.
isTemplate Boolean
Whether the repository is a template repository.
mergeCommitMessage String
The default value for a merge commit message.
mergeCommitTitle String
The default value for a merge commit title.
name String
The name of the license (e.g., "Apache License 2.0").
nodeId String
GraphQL global node id for use with v4 API
pages List<GetRepositoryPage>
The repository's GitHub Pages configuration.
primaryLanguage String
The primary language used in the repository.
private_ Boolean
Whether the repository is private.
repoId Integer
GitHub ID for the repository
repositoryLicenses List<GetRepositoryRepositoryLicense>
An Array of GitHub repository licenses. Each repository_license block consists of the fields documented below.
squashMergeCommitMessage String
The default value for a squash merge commit message.
squashMergeCommitTitle String
The default value for a squash merge commit title.
sshCloneUrl String
URL that can be provided to git clone to clone the repository via SSH.
svnUrl String
URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.
templates List<GetRepositoryTemplate>
The repository source template configuration.
topics List<String>
The list of topics of the repository.
visibility String
Whether the repository is public, private or internal.
description String
A description of the license.
homepageUrl String
URL of a page describing the project.
allowAutoMerge boolean
Whether the repository allows auto-merging pull requests.
allowMergeCommit boolean
Whether the repository allows merge commits.
allowRebaseMerge boolean
Whether the repository allows rebase merges.
allowSquashMerge boolean
Whether the repository allows squash merges.
allowUpdateBranch boolean
archived boolean
Whether the repository is archived.
defaultBranch string
The name of the default branch of the repository.
deleteBranchOnMerge boolean
fork boolean
Whether the repository is a fork.
fullName string
gitCloneUrl string
URL that can be provided to git clone to clone the repository anonymously via the git protocol.
hasDiscussions boolean
Whether the repository has GitHub Discussions enabled.
hasDownloads boolean
Whether the repository has Downloads feature enabled.
hasIssues boolean
Whether the repository has GitHub Issues enabled.
hasProjects boolean
Whether the repository has the GitHub Projects enabled.
hasWiki boolean
Whether the repository has the GitHub Wiki enabled.
htmlUrl string
The URL to view the license details on GitHub.
httpCloneUrl string
URL that can be provided to git clone to clone the repository via HTTPS.
id string
The provider-assigned unique ID for this managed resource.
isTemplate boolean
Whether the repository is a template repository.
mergeCommitMessage string
The default value for a merge commit message.
mergeCommitTitle string
The default value for a merge commit title.
name string
The name of the license (e.g., "Apache License 2.0").
nodeId string
GraphQL global node id for use with v4 API
pages GetRepositoryPage[]
The repository's GitHub Pages configuration.
primaryLanguage string
The primary language used in the repository.
private boolean
Whether the repository is private.
repoId number
GitHub ID for the repository
repositoryLicenses GetRepositoryRepositoryLicense[]
An Array of GitHub repository licenses. Each repository_license block consists of the fields documented below.
squashMergeCommitMessage string
The default value for a squash merge commit message.
squashMergeCommitTitle string
The default value for a squash merge commit title.
sshCloneUrl string
URL that can be provided to git clone to clone the repository via SSH.
svnUrl string
URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.
templates GetRepositoryTemplate[]
The repository source template configuration.
topics string[]
The list of topics of the repository.
visibility string
Whether the repository is public, private or internal.
description string
A description of the license.
homepageUrl string
URL of a page describing the project.
allow_auto_merge bool
Whether the repository allows auto-merging pull requests.
allow_merge_commit bool
Whether the repository allows merge commits.
allow_rebase_merge bool
Whether the repository allows rebase merges.
allow_squash_merge bool
Whether the repository allows squash merges.
allow_update_branch bool
archived bool
Whether the repository is archived.
default_branch str
The name of the default branch of the repository.
delete_branch_on_merge bool
fork bool
Whether the repository is a fork.
full_name str
git_clone_url str
URL that can be provided to git clone to clone the repository anonymously via the git protocol.
has_discussions bool
Whether the repository has GitHub Discussions enabled.
has_downloads bool
Whether the repository has Downloads feature enabled.
has_issues bool
Whether the repository has GitHub Issues enabled.
has_projects bool
Whether the repository has the GitHub Projects enabled.
has_wiki bool
Whether the repository has the GitHub Wiki enabled.
html_url str
The URL to view the license details on GitHub.
http_clone_url str
URL that can be provided to git clone to clone the repository via HTTPS.
id str
The provider-assigned unique ID for this managed resource.
is_template bool
Whether the repository is a template repository.
merge_commit_message str
The default value for a merge commit message.
merge_commit_title str
The default value for a merge commit title.
name str
The name of the license (e.g., "Apache License 2.0").
node_id str
GraphQL global node id for use with v4 API
pages Sequence[GetRepositoryPage]
The repository's GitHub Pages configuration.
primary_language str
The primary language used in the repository.
private bool
Whether the repository is private.
repo_id int
GitHub ID for the repository
repository_licenses Sequence[GetRepositoryRepositoryLicense]
An Array of GitHub repository licenses. Each repository_license block consists of the fields documented below.
squash_merge_commit_message str
The default value for a squash merge commit message.
squash_merge_commit_title str
The default value for a squash merge commit title.
ssh_clone_url str
URL that can be provided to git clone to clone the repository via SSH.
svn_url str
URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.
templates Sequence[GetRepositoryTemplate]
The repository source template configuration.
topics Sequence[str]
The list of topics of the repository.
visibility str
Whether the repository is public, private or internal.
description str
A description of the license.
homepage_url str
URL of a page describing the project.
allowAutoMerge Boolean
Whether the repository allows auto-merging pull requests.
allowMergeCommit Boolean
Whether the repository allows merge commits.
allowRebaseMerge Boolean
Whether the repository allows rebase merges.
allowSquashMerge Boolean
Whether the repository allows squash merges.
allowUpdateBranch Boolean
archived Boolean
Whether the repository is archived.
defaultBranch String
The name of the default branch of the repository.
deleteBranchOnMerge Boolean
fork Boolean
Whether the repository is a fork.
fullName String
gitCloneUrl String
URL that can be provided to git clone to clone the repository anonymously via the git protocol.
hasDiscussions Boolean
Whether the repository has GitHub Discussions enabled.
hasDownloads Boolean
Whether the repository has Downloads feature enabled.
hasIssues Boolean
Whether the repository has GitHub Issues enabled.
hasProjects Boolean
Whether the repository has the GitHub Projects enabled.
hasWiki Boolean
Whether the repository has the GitHub Wiki enabled.
htmlUrl String
The URL to view the license details on GitHub.
httpCloneUrl String
URL that can be provided to git clone to clone the repository via HTTPS.
id String
The provider-assigned unique ID for this managed resource.
isTemplate Boolean
Whether the repository is a template repository.
mergeCommitMessage String
The default value for a merge commit message.
mergeCommitTitle String
The default value for a merge commit title.
name String
The name of the license (e.g., "Apache License 2.0").
nodeId String
GraphQL global node id for use with v4 API
pages List<Property Map>
The repository's GitHub Pages configuration.
primaryLanguage String
The primary language used in the repository.
private Boolean
Whether the repository is private.
repoId Number
GitHub ID for the repository
repositoryLicenses List<Property Map>
An Array of GitHub repository licenses. Each repository_license block consists of the fields documented below.
squashMergeCommitMessage String
The default value for a squash merge commit message.
squashMergeCommitTitle String
The default value for a squash merge commit title.
sshCloneUrl String
URL that can be provided to git clone to clone the repository via SSH.
svnUrl String
URL that can be provided to svn checkout to check out the repository via GitHub's Subversion protocol emulation.
templates List<Property Map>
The repository source template configuration.
topics List<String>
The list of topics of the repository.
visibility String
Whether the repository is public, private or internal.
description String
A description of the license.
homepageUrl String
URL of a page describing the project.

Supporting Types

GetRepositoryPage

BuildType This property is required. string
Cname This property is required. string
Custom404 This property is required. bool
HtmlUrl This property is required. string
The URL to view the license details on GitHub.
Sources This property is required. List<GetRepositoryPageSource>
Status This property is required. string
Url This property is required. string
The URL to access information about the license on GitHub.
BuildType This property is required. string
Cname This property is required. string
Custom404 This property is required. bool
HtmlUrl This property is required. string
The URL to view the license details on GitHub.
Sources This property is required. []GetRepositoryPageSource
Status This property is required. string
Url This property is required. string
The URL to access information about the license on GitHub.
buildType This property is required. String
cname This property is required. String
custom404 This property is required. Boolean
htmlUrl This property is required. String
The URL to view the license details on GitHub.
sources This property is required. List<GetRepositoryPageSource>
status This property is required. String
url This property is required. String
The URL to access information about the license on GitHub.
buildType This property is required. string
cname This property is required. string
custom404 This property is required. boolean
htmlUrl This property is required. string
The URL to view the license details on GitHub.
sources This property is required. GetRepositoryPageSource[]
status This property is required. string
url This property is required. string
The URL to access information about the license on GitHub.
build_type This property is required. str
cname This property is required. str
custom404 This property is required. bool
html_url This property is required. str
The URL to view the license details on GitHub.
sources This property is required. Sequence[GetRepositoryPageSource]
status This property is required. str
url This property is required. str
The URL to access information about the license on GitHub.
buildType This property is required. String
cname This property is required. String
custom404 This property is required. Boolean
htmlUrl This property is required. String
The URL to view the license details on GitHub.
sources This property is required. List<Property Map>
status This property is required. String
url This property is required. String
The URL to access information about the license on GitHub.

GetRepositoryPageSource

Branch This property is required. string
Path This property is required. string
The path to the license file within the repository.
Branch This property is required. string
Path This property is required. string
The path to the license file within the repository.
branch This property is required. String
path This property is required. String
The path to the license file within the repository.
branch This property is required. string
path This property is required. string
The path to the license file within the repository.
branch This property is required. str
path This property is required. str
The path to the license file within the repository.
branch This property is required. String
path This property is required. String
The path to the license file within the repository.

GetRepositoryRepositoryLicense

Content This property is required. string
Content of the license file, encoded by encoding scheme mentioned below.
DownloadUrl This property is required. string
The URL to download the raw content of the license file.
Encoding This property is required. string
The encoding used for the content (e.g., "base64").
GitUrl This property is required. string
The URL to access information about the license file as a Git blob.
HtmlUrl This property is required. string
The URL to view the license details on GitHub.
Licenses This property is required. List<GetRepositoryRepositoryLicenseLicense>
license block consists of the fields documented below.
Name This property is required. string
The name of the repository.
Path This property is required. string
The path to the license file within the repository.
Sha This property is required. string
The SHA hash of the license file.
Size This property is required. int
The size of the license file in bytes.
Type This property is required. string
The type of the content, (e.g., "file").
Url This property is required. string
The URL to access information about the license on GitHub.
Content This property is required. string
Content of the license file, encoded by encoding scheme mentioned below.
DownloadUrl This property is required. string
The URL to download the raw content of the license file.
Encoding This property is required. string
The encoding used for the content (e.g., "base64").
GitUrl This property is required. string
The URL to access information about the license file as a Git blob.
HtmlUrl This property is required. string
The URL to view the license details on GitHub.
Licenses This property is required. []GetRepositoryRepositoryLicenseLicense
license block consists of the fields documented below.
Name This property is required. string
The name of the repository.
Path This property is required. string
The path to the license file within the repository.
Sha This property is required. string
The SHA hash of the license file.
Size This property is required. int
The size of the license file in bytes.
Type This property is required. string
The type of the content, (e.g., "file").
Url This property is required. string
The URL to access information about the license on GitHub.
content This property is required. String
Content of the license file, encoded by encoding scheme mentioned below.
downloadUrl This property is required. String
The URL to download the raw content of the license file.
encoding This property is required. String
The encoding used for the content (e.g., "base64").
gitUrl This property is required. String
The URL to access information about the license file as a Git blob.
htmlUrl This property is required. String
The URL to view the license details on GitHub.
licenses This property is required. List<GetRepositoryRepositoryLicenseLicense>
license block consists of the fields documented below.
name This property is required. String
The name of the repository.
path This property is required. String
The path to the license file within the repository.
sha This property is required. String
The SHA hash of the license file.
size This property is required. Integer
The size of the license file in bytes.
type This property is required. String
The type of the content, (e.g., "file").
url This property is required. String
The URL to access information about the license on GitHub.
content This property is required. string
Content of the license file, encoded by encoding scheme mentioned below.
downloadUrl This property is required. string
The URL to download the raw content of the license file.
encoding This property is required. string
The encoding used for the content (e.g., "base64").
gitUrl This property is required. string
The URL to access information about the license file as a Git blob.
htmlUrl This property is required. string
The URL to view the license details on GitHub.
licenses This property is required. GetRepositoryRepositoryLicenseLicense[]
license block consists of the fields documented below.
name This property is required. string
The name of the repository.
path This property is required. string
The path to the license file within the repository.
sha This property is required. string
The SHA hash of the license file.
size This property is required. number
The size of the license file in bytes.
type This property is required. string
The type of the content, (e.g., "file").
url This property is required. string
The URL to access information about the license on GitHub.
content This property is required. str
Content of the license file, encoded by encoding scheme mentioned below.
download_url This property is required. str
The URL to download the raw content of the license file.
encoding This property is required. str
The encoding used for the content (e.g., "base64").
git_url This property is required. str
The URL to access information about the license file as a Git blob.
html_url This property is required. str
The URL to view the license details on GitHub.
licenses This property is required. Sequence[GetRepositoryRepositoryLicenseLicense]
license block consists of the fields documented below.
name This property is required. str
The name of the repository.
path This property is required. str
The path to the license file within the repository.
sha This property is required. str
The SHA hash of the license file.
size This property is required. int
The size of the license file in bytes.
type This property is required. str
The type of the content, (e.g., "file").
url This property is required. str
The URL to access information about the license on GitHub.
content This property is required. String
Content of the license file, encoded by encoding scheme mentioned below.
downloadUrl This property is required. String
The URL to download the raw content of the license file.
encoding This property is required. String
The encoding used for the content (e.g., "base64").
gitUrl This property is required. String
The URL to access information about the license file as a Git blob.
htmlUrl This property is required. String
The URL to view the license details on GitHub.
licenses This property is required. List<Property Map>
license block consists of the fields documented below.
name This property is required. String
The name of the repository.
path This property is required. String
The path to the license file within the repository.
sha This property is required. String
The SHA hash of the license file.
size This property is required. Number
The size of the license file in bytes.
type This property is required. String
The type of the content, (e.g., "file").
url This property is required. String
The URL to access information about the license on GitHub.

GetRepositoryRepositoryLicenseLicense

Body This property is required. string
The text of the license.
Conditions This property is required. List<string>
Conditions associated with the license.
Description This property is required. string
A description of the license.
Featured This property is required. bool
Indicates if the license is featured.
HtmlUrl This property is required. string
The URL to view the license details on GitHub.
Implementation This property is required. string
Details about the implementation of the license.
Key This property is required. string
A key representing the license type (e.g., "apache-2.0").
Limitations This property is required. List<string>
Limitations associated with the license.
Name This property is required. string
The name of the repository.
Permissions This property is required. List<string>
Permissions associated with the license.
SpdxId This property is required. string
The SPDX identifier for the license (e.g., "Apache-2.0").
Url This property is required. string
The URL to access information about the license on GitHub.
Body This property is required. string
The text of the license.
Conditions This property is required. []string
Conditions associated with the license.
Description This property is required. string
A description of the license.
Featured This property is required. bool
Indicates if the license is featured.
HtmlUrl This property is required. string
The URL to view the license details on GitHub.
Implementation This property is required. string
Details about the implementation of the license.
Key This property is required. string
A key representing the license type (e.g., "apache-2.0").
Limitations This property is required. []string
Limitations associated with the license.
Name This property is required. string
The name of the repository.
Permissions This property is required. []string
Permissions associated with the license.
SpdxId This property is required. string
The SPDX identifier for the license (e.g., "Apache-2.0").
Url This property is required. string
The URL to access information about the license on GitHub.
body This property is required. String
The text of the license.
conditions This property is required. List<String>
Conditions associated with the license.
description This property is required. String
A description of the license.
featured This property is required. Boolean
Indicates if the license is featured.
htmlUrl This property is required. String
The URL to view the license details on GitHub.
implementation This property is required. String
Details about the implementation of the license.
key This property is required. String
A key representing the license type (e.g., "apache-2.0").
limitations This property is required. List<String>
Limitations associated with the license.
name This property is required. String
The name of the repository.
permissions This property is required. List<String>
Permissions associated with the license.
spdxId This property is required. String
The SPDX identifier for the license (e.g., "Apache-2.0").
url This property is required. String
The URL to access information about the license on GitHub.
body This property is required. string
The text of the license.
conditions This property is required. string[]
Conditions associated with the license.
description This property is required. string
A description of the license.
featured This property is required. boolean
Indicates if the license is featured.
htmlUrl This property is required. string
The URL to view the license details on GitHub.
implementation This property is required. string
Details about the implementation of the license.
key This property is required. string
A key representing the license type (e.g., "apache-2.0").
limitations This property is required. string[]
Limitations associated with the license.
name This property is required. string
The name of the repository.
permissions This property is required. string[]
Permissions associated with the license.
spdxId This property is required. string
The SPDX identifier for the license (e.g., "Apache-2.0").
url This property is required. string
The URL to access information about the license on GitHub.
body This property is required. str
The text of the license.
conditions This property is required. Sequence[str]
Conditions associated with the license.
description This property is required. str
A description of the license.
featured This property is required. bool
Indicates if the license is featured.
html_url This property is required. str
The URL to view the license details on GitHub.
implementation This property is required. str
Details about the implementation of the license.
key This property is required. str
A key representing the license type (e.g., "apache-2.0").
limitations This property is required. Sequence[str]
Limitations associated with the license.
name This property is required. str
The name of the repository.
permissions This property is required. Sequence[str]
Permissions associated with the license.
spdx_id This property is required. str
The SPDX identifier for the license (e.g., "Apache-2.0").
url This property is required. str
The URL to access information about the license on GitHub.
body This property is required. String
The text of the license.
conditions This property is required. List<String>
Conditions associated with the license.
description This property is required. String
A description of the license.
featured This property is required. Boolean
Indicates if the license is featured.
htmlUrl This property is required. String
The URL to view the license details on GitHub.
implementation This property is required. String
Details about the implementation of the license.
key This property is required. String
A key representing the license type (e.g., "apache-2.0").
limitations This property is required. List<String>
Limitations associated with the license.
name This property is required. String
The name of the repository.
permissions This property is required. List<String>
Permissions associated with the license.
spdxId This property is required. String
The SPDX identifier for the license (e.g., "Apache-2.0").
url This property is required. String
The URL to access information about the license on GitHub.

GetRepositoryTemplate

Owner This property is required. string
Repository This property is required. string
Owner This property is required. string
Repository This property is required. string
owner This property is required. String
repository This property is required. String
owner This property is required. string
repository This property is required. string
owner This property is required. str
repository This property is required. str
owner This property is required. String
repository This property is required. String

Package Details

Repository
GitHub pulumi/pulumi-github
License
Apache-2.0
Notes
This Pulumi package is based on the github Terraform Provider.
GitHub v6.7.0 published on Friday, Feb 28, 2025 by Pulumi