You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful if there was a terraform data resource to query the github org - specifically get a list of all repositories from the Github Org (or maybe even a user).
example
# Get all repositories that are part of example org data"github_repos""example" {
slug="example-org"
}
# Get all repositories that are part of example user data"github_repos""example" {
slug="example-user"
}
Using the output from that data resource, we can then iterate over them for actions like
attaching teams to a repository
setting a standardized github_branch_protection setting on all repositories.
The text was updated successfully, but these errors were encountered:
I'm thinking we could implement this on top of the Search API which would give users the flexibility to query any repositories, whether scoped by an org, name, or anything else using the search syntax.
It would be useful if there was a terraform data resource to query the github org - specifically get a list of all repositories from the Github Org (or maybe even a user).
example
Using the output from that data resource, we can then iterate over them for actions like
github_branch_protection
setting on all repositories.The text was updated successfully, but these errors were encountered: