Data Source: yet_settings_github_repositories

The repositories yet's GitHub App was given on the company's organization: what an application's repository can be.

Note: It needs the App installed — in Yet's apps, under Cloud's Connections. A token (yet_settings_connection_github) is for runners, and lists none.

Example Usage

data "yet_settings_github_repositories" "acme" {}

# An application for each of the company's service-… repositories.
resource "yet_cloud_application" "service" {
  for_each = {
    for r in data.yet_settings_github_repositories.acme.repositories : r.full_name => r
    if startswith(r.full_name, "acme/service-")
  }

  namespace_id = yet_cloud_namespace.services.id
  name         = trimprefix(each.key, "acme/service-")
  stages       = [yet_cloud_environment.staging.id]
  repository   = each.key
  branch       = each.value.default_branch
}

Schema

Read-Only

Nested Schema for repositories

Read-Only:

  • default_branch (String) Its default branch.
  • full_name (String) owner/name, as an application's repository takes it.
  • private (Boolean) Whether it is private.