Skip to content

[BUG] ensure failed membership invite can be deleted - #3058

Merged
nickfloyd merged 4 commits into
integrations:mainfrom
F-Secure-web:ensure-failed-membership-invite-can-be-deleted
Jan 9, 2026
Merged

nickfloyd merged 4 commits into
integrations:mainfrom
F-Secure-web:ensure-failed-membership-invite-can-be-deleted

Conversation

@deiga

@deiga deiga commented Jan 7, 2026

Copy link
Copy Markdown
Collaborator

Supersedes #3037

Resolves #2693


Before the change?

  • Deleting github_membership when the invite had failed/expired would throw an error

After the change?

  • Deleting github_membership when the invite had failed/expired will ignore the 404 and complete
    • I wasn't able to write a test case which fails with the original behaviour :/

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

@github-actions

github-actions Bot commented Jan 7, 2026

Copy link
Copy Markdown

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

Comment thread github/resource_github_membership.go Resolved
@stevehipwell stevehipwell added this to the v6.10.0 Release milestone Jan 8, 2026
@stevehipwell stevehipwell added the Type: Bug Something isn't working as documented label Jan 8, 2026
@deiga
deiga force-pushed the ensure-failed-membership-invite-can-be-deleted branch from 2873236 to 288fe9b Compare January 8, 2026 21:15
@deiga
deiga requested a review from stevehipwell January 8, 2026 21:16

@stevehipwell stevehipwell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nickfloyd
nickfloyd merged commit 3109c39 into integrations:main Jan 9, 2026
JiayangZhou pushed a commit to JiayangZhou/terraform-provider-github that referenced this pull request Apr 16, 2026
* `github_membership`: Refactor to use Context-aware functions

Signed-off-by: Timo Sand <[email protected]>

* Ignore 404 on membership delete

Signed-off-by: Timo Sand <[email protected]>

* Refactor to use `tflog` instead of `log` package

Signed-off-by: Timo Sand <[email protected]>

* Remove calling `Read` at the end of `Create`

Signed-off-by: Timo Sand <[email protected]>

---------

Signed-off-by: Timo Sand <[email protected]>
@deiga
deiga deleted the ensure-failed-membership-invite-can-be-deleted branch May 24, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Something isn't working as documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Destroy of github_membership fails if the invitation in failed state

3 participants