layout | page_title | description |
---|---|---|
github |
GitHub: github_repositories |
Search for GitHub repositories |
-> Note: The data source will return a maximum of 1000
repositories
as documented in official API docs.
Use this data source to retrieve a list of GitHub repositories using a search query.
data "github_repositories" "example" {
query = "org:hashicorp language:Go"
}
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 includestars
,fork
, andupdated
. Defaults toupdated
.
full_names
- A list of full names of found repositories (e.g.hashicorp/terraform
)names
- A list of found repository names (e.g.terraform
)