terraform-provider-github icon indicating copy to clipboard operation
terraform-provider-github copied to clipboard

Feature Request > ability to use github unique ID for github_membership

Open 2-X opened this issue 5 years ago • 4 comments

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}).

2-X avatar Jul 27 '20 20:07 2-X

👋 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!

github-actions[bot] avatar Dec 08 '22 02:12 github-actions[bot]

Yeah this would be nifty ..

mynameistechno avatar Oct 18 '23 18:10 mynameistechno

👋 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!

github-actions[bot] avatar Jul 15 '24 01:07 github-actions[bot]

yeah i would still love this though...

2-X avatar Jul 15 '24 02:07 2-X

👋 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!

github-actions[bot] avatar Apr 12 '25 02:04 github-actions[bot]

clearly this would be useful

2-X avatar Apr 14 '25 15:04 2-X