Skip to content

fix: remove playground2 #42

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

Merged
merged 8 commits into from
Sep 2, 2024
Merged

fix: remove playground2 #42

merged 8 commits into from
Sep 2, 2024

Conversation

cunla
Copy link
Member

@cunla cunla commented Sep 2, 2024

Additionally, some changes to terraform action so it will stop spamming with changing merge-commits

  • merge_commit_title and merge_commit_message are set only if allow_merge_commit
  • squash_merge_commit_title and squash_merge_commit_message are set only if allow_squash_merge

Copy link

github-actions bot commented Sep 2, 2024

Terraform plan in terraform
With var files: terraform/production/org.tfvars terraform/production/repositories.tfvars
With variables: github_token = (sensitive value)

Plan: 0 to add, 8 to change, 10 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!~  update in-place
-   destroy

Terraform will perform the following actions:

  # github_repository.this[".github"] will be updated in-place
!~  resource "github_repository" "this" {
        id                          = ".github"
        name                        = ".github"
!~      squash_merge_commit_message = "PR_BODY" -> "COMMIT_MESSAGES"
!~      squash_merge_commit_title   = "PR_TITLE" -> "COMMIT_OR_PR_TITLE"
#        (35 unchanged attributes hidden)

#        (1 unchanged block hidden)
    }

  # github_repository.this["controls"] will be updated in-place
!~  resource "github_repository" "this" {
        id                          = "controls"
!~      merge_commit_message        = "PR_BODY" -> "PR_TITLE"
!~      merge_commit_title          = "PR_TITLE" -> "MERGE_MESSAGE"
        name                        = "controls"
!~      squash_merge_commit_message = "PR_BODY" -> "COMMIT_MESSAGES"
!~      squash_merge_commit_title   = "PR_TITLE" -> "COMMIT_OR_PR_TITLE"
#        (33 unchanged attributes hidden)

#        (1 unchanged block hidden)
    }

  # github_repository.this["django-commons-playground"] will be updated in-place
!~  resource "github_repository" "this" {
        id                          = "django-commons-playground"
        name                        = "django-commons-playground"
!~      squash_merge_commit_message = "PR_BODY" -> "COMMIT_MESSAGES"
!~      squash_merge_commit_title   = "PR_TITLE" -> "COMMIT_OR_PR_TITLE"
#        (35 unchanged attributes hidden)

#        (1 unchanged block hidden)
    }

  # github_repository.this["django-fsm-2"] will be updated in-place
!~  resource "github_repository" "this" {
        id                          = "django-fsm-2"
!~      merge_commit_message        = "BLANK" -> "PR_TITLE"
!~      merge_commit_title          = "PR_TITLE" -> "MERGE_MESSAGE"
        name                        = "django-fsm-2"
!~      squash_merge_commit_message = "PR_BODY" -> "COMMIT_MESSAGES"
!~      squash_merge_commit_title   = "PR_TITLE" -> "COMMIT_OR_PR_TITLE"
#        (33 unchanged attributes hidden)

#        (1 unchanged block hidden)
    }

  # github_repository.this["django-tasks-scheduler"] will be updated in-place
!~  resource "github_repository" "this" {
        id                          = "django-tasks-scheduler"
!~      merge_commit_message        = "PR_BODY" -> "PR_TITLE"
!~      merge_commit_title          = "PR_TITLE" -> "MERGE_MESSAGE"
        name                        = "django-tasks-scheduler"
!~      squash_merge_commit_message = "PR_BODY" -> "COMMIT_MESSAGES"
!~      squash_merge_commit_title   = "PR_TITLE" -> "COMMIT_OR_PR_TITLE"
#        (33 unchanged attributes hidden)

#        (1 unchanged block hidden)
    }

  # github_repository.this["membership"] will be updated in-place
!~  resource "github_repository" "this" {
        id                          = "membership"
!~      merge_commit_message        = "PR_BODY" -> "PR_TITLE"
!~      merge_commit_title          = "PR_TITLE" -> "MERGE_MESSAGE"
        name                        = "membership"
!~      squash_merge_commit_message = "PR_BODY" -> "COMMIT_MESSAGES"
!~      squash_merge_commit_title   = "PR_TITLE" -> "COMMIT_OR_PR_TITLE"
#        (33 unchanged attributes hidden)

#        (1 unchanged block hidden)
    }

  # github_repository.this["playground2"] will be destroyed
  # (because key ["playground2"] is not in for_each map)
-   resource "github_repository" "this" {
-       allow_auto_merge            = false -> null
-       allow_merge_commit          = false -> null
-       allow_rebase_merge          = false -> null
-       allow_squash_merge          = true -> null
-       allow_update_branch         = true -> null
-       archive_on_destroy          = true -> null
-       archived                    = false -> null
-       auto_init                   = false -> null
-       default_branch              = "main" -> null
-       delete_branch_on_merge      = true -> null
-       description                 = "Tests" -> null
-       etag                        = "W/\"66f261145ed72396bbb499461ae63aee6a022350d7a9bc6caa7c0355088fa025\"" -> null
-       full_name                   = "django-commons/playground2" -> null
-       git_clone_url               = "git://github.com/django-commons/playground2.git" -> null
-       has_discussions             = true -> null
-       has_downloads               = true -> null
-       has_issues                  = true -> null
-       has_projects                = true -> null
-       has_wiki                    = false -> null
-       html_url                    = "https://github.com/django-commons/playground2" -> null
-       http_clone_url              = "https://github.com/django-commons/playground2.git" -> null
-       id                          = "playground2" -> null
-       is_template                 = false -> null
-       merge_commit_message        = "PR_BODY" -> null
-       merge_commit_title          = "PR_TITLE" -> null
-       name                        = "playground2" -> null
-       node_id                     = "R_kgDOMlGmHg" -> null
-       private                     = false -> null
-       repo_id                     = 844211742 -> null
-       squash_merge_commit_message = "PR_BODY" -> null
-       squash_merge_commit_title   = "PR_TITLE" -> null
-       ssh_clone_url               = "git@github.com:django-commons/playground2.git" -> null
-       svn_url                     = "https://github.com/django-commons/playground2" -> null
-       topics                      = [] -> null
-       visibility                  = "public" -> null
-       vulnerability_alerts        = true -> null
-       web_commit_signoff_required = false -> null
#        (2 unchanged attributes hidden)

-       security_and_analysis {
-           secret_scanning {
-               status = "disabled" -> null
            }
-           secret_scanning_push_protection {
-               status = "disabled" -> null
            }
        }
    }

  # github_team.repo_admin_team["playground2"] will be destroyed
  # (because key ["playground2"] is not in for_each map)
-   resource "github_team" "repo_admin_team" {
-       create_default_maintainer = false -> null
-       description               = "Admin team for the playground2 repository" -> null
-       etag                      = "W/\"2a49086f55e49c690019adae68e66fd36ef844db6a33ee714068d41247d7fafe\"" -> null
-       id                        = "10869843" -> null
-       members_count             = 1 -> null
-       name                      = "playground2-admins" -> null
-       node_id                   = "T_kwDOCaaRBM4ApdxT" -> null
-       parent_team_id            = "10869823" -> null
-       parent_team_read_id       = "10869823" -> null
-       parent_team_read_slug     = "playground2" -> null
-       privacy                   = "closed" -> null
-       slug                      = "playground2-admins" -> null
#        (1 unchanged attribute hidden)
    }

  # github_team.repo_committer_team["playground2"] will be destroyed
  # (because key ["playground2"] is not in for_each map)
-   resource "github_team" "repo_committer_team" {
-       create_default_maintainer = false -> null
-       description               = "Committers team for the playground2 repository" -> null
-       etag                      = "W/\"fc79f422d89c0fbcda8aae2deab9f48c4d174eb9d8d75ad9b0f7e6ae957f82e9\"" -> null
-       id                        = "10869838" -> null
-       members_count             = 0 -> null
-       name                      = "playground2-committers" -> null
-       node_id                   = "T_kwDOCaaRBM4ApdxO" -> null
-       parent_team_id            = "10869823" -> null
-       parent_team_read_id       = "10869823" -> null
-       parent_team_read_slug     = "playground2" -> null
-       privacy                   = "closed" -> null
-       slug                      = "playground2-committers" -> null
#        (1 unchanged attribute hidden)
    }

  # github_team.repo_team["playground2"] will be destroyed
  # (because key ["playground2"] is not in for_each map)
-   resource "github_team" "repo_team" {
-       create_default_maintainer = false -> null
-       description               = "Main team for the playground2 repository" -> null
-       etag                      = "W/\"d082e5a61dec7621dda140a049cbc1908b7cf0d82ebf2e9914062d7974c28630\"" -> null
-       id                        = "10869823" -> null
-       members_count             = 1 -> null
-       name                      = "playground2" -> null
-       node_id                   = "T_kwDOCaaRBM4Apdw_" -> null
-       privacy                   = "closed" -> null
-       slug                      = "playground2" -> null
#        (4 unchanged attributes hidden)
    }

  # github_team_members.repo_admin_members["django-fsm-2"] will be updated in-place
!~  resource "github_team_members" "repo_admin_members" {
        id      = "10870432"
#        (1 unchanged attribute hidden)

-       members {
-           role     = "member" -> null
-           username = "Natim" -> null
        }
+       members {
+           role     = "member"
+           username = "natim"
        }

#        (1 unchanged block hidden)
    }

  # github_team_members.repo_admin_members["playground2"] will be destroyed
  # (because key ["playground2"] is not in for_each map)
-   resource "github_team_members" "repo_admin_members" {
-       id      = "10869843" -> null
-       team_id = "10869843" -> null

-       members {
-           role     = "maintainer" -> null
-           username = "cunla" -> null
        }
    }

  # github_team_members.repo_team_members["django-fsm-2"] will be updated in-place
!~  resource "github_team_members" "repo_team_members" {
        id      = "10870431"
#        (1 unchanged attribute hidden)

-       members {
-           role     = "member" -> null
-           username = "Natim" -> null
        }
+       members {
+           role     = "member"
+           username = "natim"
        }

#        (1 unchanged block hidden)
    }

  # github_team_members.repo_team_members["playground2"] will be destroyed
  # (because key ["playground2"] is not in for_each map)
-   resource "github_team_members" "repo_team_members" {
-       id      = "10869823" -> null
-       team_id = "10869823" -> null

-       members {
-           role     = "maintainer" -> null
-           username = "cunla" -> null
        }
    }

  # github_team_repository.repo_admin_team_access["playground2"] will be destroyed
  # (because key ["playground2"] is not in for_each map)
-   resource "github_team_repository" "repo_admin_team_access" {
-       etag       = "W/\"26318df281d4b442c71baab6f0ac945fbcf6d12e8b1ed1d89d16de28ae7da7b8\"" -> null
-       id         = "10869843:playground2" -> null
-       permission = "admin" -> null
-       repository = "playground2" -> null
-       team_id    = "10869843" -> null
    }

  # github_team_repository.repo_committer_team_access["playground2"] will be destroyed
  # (because key ["playground2"] is not in for_each map)
-   resource "github_team_repository" "repo_committer_team_access" {
-       etag       = "W/\"f0859778c9191faeb4ad64b482e967a5e09c2c0e2f7e115767bd07f358875aa0\"" -> null
-       id         = "10869838:playground2" -> null
-       permission = "maintain" -> null
-       repository = "playground2" -> null
-       team_id    = "10869838" -> null
    }

  # github_team_repository.repo_team_access["playground2"] will be destroyed
  # (because key ["playground2"] is not in for_each map)
-   resource "github_team_repository" "repo_team_access" {
-       etag       = "W/\"944694fd7786d420824004ea7eca399c706d2eca35693e1439d01e516119a246\"" -> null
-       id         = "10869823:playground2" -> null
-       permission = "triage" -> null
-       repository = "playground2" -> null
-       team_id    = "10869823" -> null
    }

  # github_team_settings.this["playground2"] will be destroyed
  # (because key ["playground2"] is not in for_each map)
-   resource "github_team_settings" "this" {
-       id        = "T_kwDOCaaRBM4Apdw_" -> null
-       team_id   = "10869823" -> null
-       team_slug = "playground2" -> null
-       team_uid  = "T_kwDOCaaRBM4Apdw_" -> null

-       review_request_delegation {
-           algorithm    = "LOAD_BALANCE" -> null
-           member_count = 2 -> null
-           notify       = false -> null
        }
    }

Plan: 0 to add, 8 to change, 10 to destroy.

📝 Plan generated in Plan org changes and list them in a PR #79

cunla and others added 3 commits September 2, 2024 15:23
Files changed:
M	terraform/production/repositories.tfvars
@cunla cunla merged commit 747ca13 into main Sep 2, 2024
2 checks passed
@cunla cunla deleted the delete-playground-2 branch September 2, 2024 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants