getRepository

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

Example Usage

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());
}
}

Return

A collection of values returned by getRepository.

Parameters

argument

A collection of arguments for invoking getRepository.


suspend fun getRepository(description: String? = null, fullName: String? = null, homepageUrl: String? = null, name: String? = null): GetRepositoryResult

Return

A collection of values returned by getRepository.

Parameters

description

A description of the license.

fullName

Full name of the repository (in org/name format).

homepageUrl

URL of a page describing the project.

name

The name of the repository.

See also


Return

A collection of values returned by getRepository.

Parameters

argument

Builder for com.pulumi.github.kotlin.inputs.GetRepositoryPlainArgs.

See also