Skip to content

[FEAT]: github_team_membership doesn't allow slug instead of team id #1501

Closed

Description

@jo-hoenzsch-s1

Describe the need

If you try to pass in the slug version of a team to team id instead of the actual numerical id you run into this issue:

│ Error: Unexpected ID format ("developers"), expected numerical ID. strconv.ParseInt: parsing "developers": invalid syntax │ │ with github_team_membership.ghe_team_membership["developers.member.blah"], │ on team_membership.tf line 14, in resource "github_team_membership" "ghe_team_membership": │ 14: resource "github_team_membership" "ghe_team_membership" { │

This happens for github_team_membership but not for github_team_repository. The documentation does make it clear, but it would be a great enhancement if we could instead be able to do it as well for github_team_membership.

SDK Version

No response

API Version

No response

Relevant log output

Error: Unexpected ID format ("developers"), expected numerical ID. strconv.ParseInt: parsing "developers": invalid syntax
│ 
│   with github_team_membership.ghe_team_membership["developers.member.blah"],
│   on team_membership.tf line 14, in resource "github_team_membership" "ghe_team_membership":
│   14: resource "github_team_membership" "ghe_team_membership" {
│

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    Status: Triage
    Type: Feature
    on Jan 20, 2023
  2. moved this from 🆕 Triage to ✅ Done in 🧰 Octokit Activeon Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageType: Feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions