Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Latest commit

 

History

History
34 lines (23 loc) · 1.03 KB

repositories.html.markdown

File metadata and controls

34 lines (23 loc) · 1.03 KB
layout page_title description
github
GitHub: github_repositories
Search for GitHub repositories

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.

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)