integrations / integrations/terraform-provider-github

Feature Request > ability to use github unique ID for github_membership

Open
#524 11 comments 6 reactions 0 assignees View on GitHub
r/team_membership Type: Feature
Dominant language
Go
Stars
1.2k
Forks
1k
Avg merge
1d 14h
Merged PRs (30d)
8

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.