Skip to content
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

chore: add if-watch repo to libp2p.yml #257

Merged
merged 5 commits into from
Oct 30, 2024
Merged

chore: add if-watch repo to libp2p.yml #257

merged 5 commits into from
Oct 30, 2024

Conversation

jxs
Copy link
Member

@jxs jxs commented Oct 29, 2024

Summary

Configure the if-watch repo after being added to the libp2p umbrella. More info here

@jxs jxs requested review from a team as code owners October 29, 2024 15:56
Copy link
Contributor

github-actions bot commented Oct 29, 2024

The following access changes will be introduced as a result of applying the plan:

Access Changes
User achingbrain:
  - will gain pull permission to if-watch
User agemanning:
  - will gain admin permission to if-watch
User dariusc93:
  - will gain push permission to if-watch
User dhuseby:
  - will gain pull permission to if-watch
User guillaumemichel:
  - will gain admin permission to if-watch
User jxs:
  - will gain admin permission to if-watch
User marcopolo:
  - will gain push permission to if-watch
User mxinden:
  - will gain push permission to if-watch
User p-shahi:
  - will gain pull permission to if-watch
User raulk:
  - will gain pull permission to if-watch
User stebalien:
  - will gain pull permission to if-watch
User thomaseizinger:
  - will gain push permission to if-watch

Copy link
Contributor

github-actions bot commented Oct 29, 2024

Before merge, verify that all the following plans are correct. They will be applied as-is after the merge.

Terraform plans

libp2p

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # github_branch_protection.this["if-watch:master"] will be created
  + resource "github_branch_protection" "this" {
      + allows_deletions                = false
      + allows_force_pushes             = false
      + blocks_creations                = false
      + enforce_admins                  = false
      + id                              = (known after apply)
      + lock_branch                     = false
      + pattern                         = "master"
      + repository_id                   = (known after apply)
      + require_conversation_resolution = false
      + require_signed_commits          = false
      + required_linear_history         = false

      + required_pull_request_reviews {
          + dismiss_stale_reviews           = false
          + require_code_owner_reviews      = false
          + require_last_push_approval      = false
          + required_approving_review_count = 1
          + restrict_dismissals             = false
        }

      + required_status_checks {
          + contexts = [
              + "build",
            ]
          + strict   = false
        }
    }

  # github_repository.this["if-watch"] will be created
  + resource "github_repository" "this" {
      + allow_auto_merge            = false
      + allow_merge_commit          = true
      + allow_rebase_merge          = true
      + allow_squash_merge          = true
      + allow_update_branch         = false
      + archived                    = false
      + default_branch              = "master"
      + delete_branch_on_merge      = false
      + description                 = "Cross platform asynchronous network watcher"
      + etag                        = (known after apply)
      + full_name                   = (known after apply)
      + git_clone_url               = (known after apply)
      + has_discussions             = false
      + html_url                    = (known after apply)
      + http_clone_url              = (known after apply)
      + id                          = (known after apply)
      + merge_commit_message        = "PR_TITLE"
      + merge_commit_title          = "MERGE_MESSAGE"
      + name                        = "if-watch"
      + node_id                     = (known after apply)
      + private                     = (known after apply)
      + repo_id                     = (known after apply)
      + squash_merge_commit_message = "COMMIT_MESSAGES"
      + squash_merge_commit_title   = "COMMIT_OR_PR_TITLE"
      + ssh_clone_url               = (known after apply)
      + svn_url                     = (known after apply)
      + visibility                  = "public"

      + security_and_analysis {

          + secret_scanning {
              + status = "enabled"
            }

          + secret_scanning_push_protection {
              + status = "enabled"
            }
        }
    }

  # github_repository_file.this["if-watch/.github/workflows/stale.yml"] will be created
  + resource "github_repository_file" "this" {
      + branch              = "master"
      + commit_author       = "GitHub"
      + commit_email        = "noreply@github.com"
      + commit_message      = "chore: Update .github/workflows/stale.yml [skip ci]"
      + commit_sha          = (known after apply)
      + content             = <<-EOT
            name: Close and mark stale issue
            
            on:
              schedule:
                - cron: '0 0 * * *'
            
            permissions:
              issues: write
              pull-requests: write
            
            jobs:
              stale:
                uses: pl-strflt/.github/.github/workflows/reusable-stale-issue.yml@v0.3
        EOT
      + file                = ".github/workflows/stale.yml"
      + id                  = (known after apply)
      + overwrite_on_create = true
      + ref                 = (known after apply)
      + repository          = "if-watch"
      + sha                 = (known after apply)
    }

  # github_team_repository.this["github-mgmt stewards:if-watch"] will be created
  + resource "github_team_repository" "this" {
      + etag       = (known after apply)
      + id         = (known after apply)
      + permission = "pull"
      + repository = "if-watch"
      + team_id    = "6630941"
    }

  # github_team_repository.this["rust-libp2p maintainers:if-watch"] will be created
  + resource "github_team_repository" "this" {
      + etag       = (known after apply)
      + id         = (known after apply)
      + permission = "admin"
      + repository = "if-watch"
      + team_id    = "11402594"
    }

  # github_team_repository.this["rust-libp2p-contributors:if-watch"] will be created
  + resource "github_team_repository" "this" {
      + etag       = (known after apply)
      + id         = (known after apply)
      + permission = "push"
      + repository = "if-watch"
      + team_id    = "11227602"
    }

Plan: 6 to add, 0 to change, 0 to destroy.

Comment on lines 2946 to 2993
.github/workflows/semantic-pull-request.yml:
content: .github/workflows/semantic-pull-request.yml
.github/workflows/stale.yml:
content: .github/workflows/stale.yml
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the reason to add this for multiple js repos?

Copy link
Member Author

Choose a reason for hiding this comment

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

don't know Gui, it wasn't added by me if you see aha

squash_merge_commit_title: COMMIT_OR_PR_TITLE
teams:
admin:
- rust-libp2p-maintainers
Copy link
Contributor

Choose a reason for hiding this comment

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

Depending on #258, may have to be changed to rust-libp2p Maintainers.

@jxs jxs merged commit 450f182 into libp2p:master Oct 30, 2024
6 checks passed
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.

3 participants