integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
912 stars 754 forks source link

Feature Request > ability to use github unique ID for github_membership #524

Open 2-X opened 4 years ago

2-X commented 4 years ago

Currently we can only provide a username to in the github_membership and github_user data sources. We're interested in using the unique identifier found at https://api.github.com/users/{USERNAME} in the "id" field. This is because username can be changed by the user, which causes our terraform scripts for github memberships to be out of date. The id cannot be changed and is globally unique, which makes it a much better candidate.

Instead of providing the username to the /users endpoint, you can get the same information by providing the id to the /user endpoint (e.g. https://api.github.com/user/{id}).

github-actions[bot] commented 1 year ago

👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

mynameistechno commented 1 year ago

Yeah this would be nifty ..

github-actions[bot] commented 4 months ago

👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

2-X commented 4 months ago

yeah i would still love this though...