Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: github_organization_repositories data source #2484

Open
1 task done
borchero opened this issue Nov 29, 2024 · 0 comments · May be fixed by #2485
Open
1 task done

[FEAT]: github_organization_repositories data source #2484

borchero opened this issue Nov 29, 2024 · 0 comments · May be fixed by #2485
Labels
Status: Triage This is being looked at and prioritized Type: Feature New feature or request

Comments

@borchero
Copy link

Describe the need

Currently, obtaining details about all repositories in an organization requires either

  1. using github_organization providing the names of the repositories, then using github_repository to fetch details for all of them or
  2. using github_repositories to use GitHub's search feature to fetch repositories.

Unfortunately, option (1) is prohibitively slow for large organization as at least one network request is sent for each github_repository while option (2) does not work at all for repositories with more than 1000 repositories.

Luckily, the GitHub API provides an endpoint to obtain details about all repositories in an organization, namely /orgs/{org}/repos. Unfortunately, this endpoint is not yet exposed in the Terraform provider. To remedy this, one might want to introduce a new github_organization_repositories data source.

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@borchero borchero added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Nov 29, 2024
@borchero borchero linked a pull request Nov 29, 2024 that will close this issue
4 tasks
@nickfloyd nickfloyd moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Active Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage This is being looked at and prioritized Type: Feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant