GetRepositories
Note: The data source will return a maximum of
1000repositories as documented in official API docs.
Use this data source to retrieve a list of GitHub repositories using a search query.
Example Usage
using Pulumi;
using Github = Pulumi.Github;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Github.GetRepositories.InvokeAsync(new Github.GetRepositoriesArgs
{
Query = "org:hashicorp language:Go",
}));
}
}
Coming soon!
import pulumi
import pulumi_github as github
example = github.get_repositories(query="org:hashicorp language:Go")import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const example = pulumi.output(github.getRepositories({
query: "org:hashicorp language:Go",
}, { async: true }));Using GetRepositories
function getRepositories(args: GetRepositoriesArgs, opts?: InvokeOptions): Promise<GetRepositoriesResult>function get_repositories(query=None, sort=None, opts=None)func GetRepositories(ctx *Context, args *GetRepositoriesArgs, opts ...InvokeOption) (*GetRepositoriesResult, error)public static class GetRepositories {
public static Task<GetRepositoriesResult> InvokeAsync(GetRepositoriesArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Query string
Search query. See documentation for the search syntax.
- Sort string
Sorts the repositories returned by the specified attribute. Valid values include
stars,fork, andupdated. Defaults toupdated.
- Query string
Search query. See documentation for the search syntax.
- Sort string
Sorts the repositories returned by the specified attribute. Valid values include
stars,fork, andupdated. Defaults toupdated.
- query string
Search query. See documentation for the search syntax.
- sort string
Sorts the repositories returned by the specified attribute. Valid values include
stars,fork, andupdated. Defaults toupdated.
- query str
Search query. See documentation for the search syntax.
- sort str
Sorts the repositories returned by the specified attribute. Valid values include
stars,fork, andupdated. Defaults toupdated.
GetRepositories Result
The following output properties are available:
- Full
Names List<string> - Id string
The provider-assigned unique ID for this managed resource.
- Names List<string>
- Query string
- Sort string
Package Details
- Repository
- https://github.com/pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
githubTerraform Provider.