-
Notifications
You must be signed in to change notification settings - Fork 697
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
feat: add ability to downgrade membership when github_membership
is destroyed
#1783
Merged
kfcampbell
merged 10 commits into
integrations:main
from
jsifuentes:feat/downgrade-membership-on-destroy
Jul 14, 2023
Merged
feat: add ability to downgrade membership when github_membership
is destroyed
#1783
kfcampbell
merged 10 commits into
integrations:main
from
jsifuentes:feat/downgrade-membership-on-destroy
Jul 14, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kfcampbell
reviewed
Jul 10, 2023
kfcampbell
reviewed
Jul 10, 2023
Co-authored-by: Keegan Campbell <me@kfcampbell.com>
kfcampbell
approved these changes
Jul 14, 2023
doonga
pushed a commit
to doonga/greyrock-ops
that referenced
this pull request
Jul 15, 2023
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github](https://registry.terraform.io/providers/integrations/github) ([source](https://togithub.com/integrations/terraform-provider-github)) | required_provider | minor | `5.30.1` -> `5.31.0` | --- ### Release Notes <details> <summary>integrations/terraform-provider-github (github)</summary> ### [`v5.31.0`](https://togithub.com/integrations/terraform-provider-github/releases/tag/v5.31.0) [Compare Source](https://togithub.com/integrations/terraform-provider-github/compare/v5.30.1...v5.31.0) #### What's Changed - build(deps): bump golang.org/x/oauth2 from 0.9.0 to 0.10.0 by [@​dependabot](https://togithub.com/dependabot) in [integrations/terraform-provider-github#1785 - 💅 Typo in docs by [@​nmacri](https://togithub.com/nmacri) in [integrations/terraform-provider-github#1789 - Attempted fix for [#​1657](https://togithub.com/integrations/terraform-provider-github/issues/1657) by [@​yaakov-h](https://togithub.com/yaakov-h) in [integrations/terraform-provider-github#1774 - Do not change allow_update_branch/has_downloads on archived repos by [@​kristian-lesko](https://togithub.com/kristian-lesko) in [integrations/terraform-provider-github#1795 - feat: add ability to downgrade membership when `github_membership` is destroyed by [@​jsifuentes](https://togithub.com/jsifuentes) in [integrations/terraform-provider-github#1783 #### New Contributors - [@​nmacri](https://togithub.com/nmacri) made their first contribution in [integrations/terraform-provider-github#1789 - [@​yaakov-h](https://togithub.com/yaakov-h) made their first contribution in [integrations/terraform-provider-github#1774 **Full Changelog**: integrations/terraform-provider-github@v5.30.1...v5.31.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi44LjUiLCJ1cGRhdGVkSW5WZXIiOiIzNi44LjUiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=--> Co-authored-by: greyrock-bot <112729691+greyrock-bot[bot]@users.noreply.github.com>
jsifuentes
added a commit
to jsifuentes/terraform-provider-github
that referenced
this pull request
Jul 17, 2023
… destroyed (integrations#1783) * feat: add ability to downgrade membership on destroy * add docs * formatting * formatting * check membership status before downgrading * fix lint * fix lint * Update github/resource_github_membership.go Co-authored-by: Keegan Campbell <me@kfcampbell.com> --------- Co-authored-by: Keegan Campbell <me@kfcampbell.com>
felixlut
pushed a commit
to felixlut/terraform-provider-github
that referenced
this pull request
Jul 22, 2023
… destroyed (integrations#1783) * feat: add ability to downgrade membership on destroy * add docs * formatting * formatting * check membership status before downgrading * fix lint * fix lint * Update github/resource_github_membership.go Co-authored-by: Keegan Campbell <me@kfcampbell.com> --------- Co-authored-by: Keegan Campbell <me@kfcampbell.com>
avidspartan1
pushed a commit
to avidspartan1/terraform-provider-github
that referenced
this pull request
Feb 5, 2024
… destroyed (integrations#1783) * feat: add ability to downgrade membership on destroy * add docs * formatting * formatting * check membership status before downgrading * fix lint * fix lint * Update github/resource_github_membership.go Co-authored-by: Keegan Campbell <me@kfcampbell.com> --------- Co-authored-by: Keegan Campbell <me@kfcampbell.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #1782
Behavior
Before the change?
After the change?
downgrade_on_destroy = true
to agithub_membership
resource. Instead of revoking org membership, the membership role will be set to 'member' when the resource is destroyed.Additional info
testAccGithubMembershipConfigDowngradable
sets the role toadmin
and sets thedowngrade_on_destroy
to true. Since the Destroy no longer completely removes the membership during this test case, the membership is cleaned up during theCheckDestroy
.Pull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!
Type: Breaking change
label)If
Yes
, what's the impact:Pull request type
Type: Feature