Skip to content

[MAINT]: Skip github_team_members deletion when the associated github_team is deleted #3411

Closed

Description

@acouvreur

Describe the need

When a github_team is deleted, all github_team_members are removed by the provider one by one.

We can completely skip that step because deleting the team will make these resources deleted either way.

SDK Version

No response

API Version

No response

Relevant log output

Code of Conduct

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

Activity

  1. added
    Status: Triage
    Type: Maintenance
    on May 7, 2026
  2. github-actions commented on May 7, 2026

    @github-actions

    👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

  3. doughlass commented on May 9, 2026

    @doughlass

    I thought even if you went on to destroy the github_team team from GitHub, it removed the team with the API and state but the members would still live in state?

  4. acouvreur commented on May 9, 2026

    @acouvreur
    ContributorAuthor

    I'm not sure about that, but I suppose yes?

    Right now, our value files are removing both the team members and the team itself.

    So when the team is removed first, all subsequent team member deletion fails.

  5. deiga commented on May 9, 2026

    @deiga
    Collaborator

    Yes, you're right. Deletion should auto-succeed if the team has already been deleted.

    And plan should remove from state if team is removed

  6. added
    Status: Up for grabs
    and removed
    Status: Triage
    on May 9, 2026
  7. removed
    Status: Up for grabs
    on May 22, 2026
  8. added 2 commits that reference this issue on May 30, 2026
    99e1360
    8b8f5f4
  9. added this to the v6.13.0 milestone on Jun 3, 2026
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

    Type: Maintenancer/team_membership

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions