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]: data github_repositories should return better structure #2300

Open
1 task done
uthark opened this issue Jun 27, 2024 · 0 comments
Open
1 task done

[FEAT]: data github_repositories should return better structure #2300

uthark opened this issue Jun 27, 2024 · 0 comments
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Feature New feature or request

Comments

@uthark
Copy link

uthark commented Jun 27, 2024

Describe the need

Currently it returns 3 individual list with full_names, names and repo_ids.
I need to map repo name to the repo id, but I'm not sure if the returned data is consistently ordered.

Ideally, return a list of maps and each map would have repo information to use.

The use-case:
I need to configure access to org level secret and resource github_actions_organization_secret_repositories requires to pass repo ids, but from the configuaration perspective we want to pass repo names.

So we need to resolve repo id from its' name. To reduce the load on gh api we'd like to use data.github_repositories, but resulting data is hard to use / docs don't make guarantee that returned list match.

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
@uthark uthark added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Jun 27, 2024
@kfcampbell kfcampbell added Status: Up for grabs Issues that are ready to be worked on by anyone and removed Status: Triage This is being looked at and prioritized labels Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Up for grabs Issues that are ready to be worked on by anyone Type: Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants