» github_repositories

Use this data source to retrieve a list of GitHub repositories using a search query.

» Example Usage

data "github_repositories" "example" {
  query = "org:hashicorp language:Go"
}

» Argument Reference

The following arguments are supported:

  • query - (Required) Search query. See documentation for the search syntax.

  • sort - (Optional) Sorts the repositories returned by the specified attribute. Valid values include stars, fork, and updated. Defaults to updated.

» Attributes Reference

  • full_names - A list of full names of found repositories (e.g. hashicorp/terraform)
  • names - A list of found repository names (e.g. terraform)