-
Notifications
You must be signed in to change notification settings - Fork 741
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
Feature request: Provide membership status in the github_membership
data source.
#862
Labels
Type: Feature
New feature or request
Comments
Sounds like a great addition to support this use case. PRs welcome! |
This feature would be awesome indeed. |
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Sep 15, 2022
…e of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Sep 15, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Sep 15, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Sep 15, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Sep 19, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Sep 20, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Sep 21, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Sep 24, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Oct 11, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Oct 13, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Oct 13, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Oct 17, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Oct 25, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Oct 26, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Oct 27, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Oct 27, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Oct 30, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Nov 1, 2022
…te of the invite
wwsean08
added a commit
to wwsean08/terraform-provider-github
that referenced
this issue
Nov 7, 2022
…te of the invite
kfcampbell
pushed a commit
that referenced
this issue
Nov 8, 2022
kazaker
pushed a commit
to auto1-oss/terraform-provider-github
that referenced
this issue
Dec 28, 2022
…te of the invite (integrations#1290)
avidspartan1
pushed a commit
to avidspartan1/terraform-provider-github
that referenced
this issue
Feb 5, 2024
…te of the invite (integrations#1290)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there! This is a feature request.
Currently, the
github_membership
data source considers Github users with unaccepted invitations to join an organization to be full organization members. It would be helpful to be able to distinguish, when usinggithub_membership
, whether a user is a current organization member, or merely has a pending invitation. This information would be useful, for example, to ensure that only current organization members are added to a team via thegithub_team_membership
resource or given certain repository protected branch permissions via thegithub_branch_protection
resource.Glancing at the code, implementing this feature might be as simple as getting the
state
field of the go-github client's Membership object when calling the go-github GetOrgMembership method in github/data_source_github_membership.go, and adding a "state" property to the github_membership schema.go-github
'sMembership
'sstate
value should bepending
if the user has an unaccepted invitation, oractive
if the user has successfully accepted the invitation.The text was updated successfully, but these errors were encountered: