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

[WIP] trying to add a customDatasource/manager for nextflow plugins #33

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mashehu
Copy link
Contributor

@mashehu mashehu commented Feb 20, 2024

not really getting everything which is going on here. WIP WIP WIP

not really getting everything which is going on here. WIP WIP WIP
@mashehu mashehu changed the title trying to add a customDatasource/manager for nextflow plugins [WIP] trying to add a customDatasource/manager for nextflow plugins Feb 20, 2024
Copy link

github-actions bot commented Feb 20, 2024

Terraform Format and Style 🖌success

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output

Success! The configuration is valid.


Terraform Plan 📖success

Show Plan

terraform

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.modules_master will be created
  + resource "github_branch" "modules_master" {
      + branch        = "master"
      + etag          = (known after apply)
      + id            = (known after apply)
      + ref           = (known after apply)
      + repository    = "modules"
      + sha           = (known after apply)
      + source_branch = "main"
      + source_sha    = (known after apply)
    }

  # github_branch_default.modules will be created
  + resource "github_branch_default" "modules" {
      + branch     = "master"
      + id         = (known after apply)
      + rename     = false
      + repository = "modules"
    }

  # github_organization_settings.nf-core will be created
  + resource "github_organization_settings" "nf-core" {
      + advanced_security_enabled_for_new_repositories               = false
      + billing_email                                                = (sensitive value)
      + blog                                                         = "http://nf-co.re"
      + default_repository_permission                                = "read"
      + dependabot_alerts_enabled_for_new_repositories               = false
      + dependabot_security_updates_enabled_for_new_repositories     = false
      + dependency_graph_enabled_for_new_repositories                = false
      + description                                                  = "A community effort to collect a curated set of analysis pipelines built using Nextflow."
      + email                                                        = "[email protected]"
      + has_organization_projects                                    = true
      + has_repository_projects                                      = true
      + id                                                           = (known after apply)
      + members_can_create_internal_repositories                     = false
      + members_can_create_pages                                     = false
      + members_can_create_private_pages                             = false
      + members_can_create_private_repositories                      = false
      + members_can_create_public_pages                              = false
      + members_can_create_public_repositories                       = false
      + members_can_create_repositories                              = false
      + members_can_fork_private_repositories                        = false
      + name                                                         = "nf-core"
      + secret_scanning_enabled_for_new_repositories                 = false
      + secret_scanning_push_protection_enabled_for_new_repositories = false
      + twitter_username                                             = "nf_core"
      + web_commit_signoff_required                                  = false
    }

  # github_repository.modules will be created
  + resource "github_repository" "modules" {
      + allow_auto_merge            = false
      + allow_merge_commit          = false
      + allow_rebase_merge          = false
      + allow_squash_merge          = true
      + allow_update_branch         = true
      + archived                    = false
      + auto_init                   = false
      + default_branch              = (known after apply)
      + delete_branch_on_merge      = false
      + description                 = "Repository to host tool-specific module files for the Nextflow DSL2 community!"
      + etag                        = (known after apply)
      + full_name                   = (known after apply)
      + git_clone_url               = (known after apply)
      + has_discussions             = false
      + has_downloads               = true
      + has_issues                  = true
      + has_projects                = true
      + has_wiki                    = false
      + homepage_url                = "https://nf-co.re"
      + html_url                    = (known after apply)
      + http_clone_url              = (known after apply)
      + id                          = (known after apply)
      + is_template                 = false
      + merge_commit_message        = "PR_TITLE"
      + merge_commit_title          = "MERGE_MESSAGE"
      + name                        = "modules"
      + node_id                     = (known after apply)
      + primary_language            = (known after apply)
      + private                     = (known after apply)
      + repo_id                     = (known after apply)
      + squash_merge_commit_message = "COMMIT_MESSAGES"
      + squash_merge_commit_title   = "PR_TITLE"
      + ssh_clone_url               = (known after apply)
      + svn_url                     = (known after apply)
      + topics                      = [
          + "dsl2",
          + "modules",
          + "nextflow",
          + "nf-core",
          + "nf-test",
          + "pipelines",
          + "workflows",
        ]
      + visibility                  = "public"

      + security_and_analysis {
          + secret_scanning {
              + status = "disabled"
            }
          + secret_scanning_push_protection {
              + status = "disabled"
            }
        }
    }

  # github_repository.pipelines["methylseq"] will be created
  + resource "github_repository" "pipelines" {
      + allow_auto_merge            = false
      + allow_merge_commit          = true
      + allow_rebase_merge          = true
      + allow_squash_merge          = true
      + archived                    = false
      + default_branch              = (known after apply)
      + delete_branch_on_merge      = false
      + etag                        = (known after apply)
      + full_name                   = (known after apply)
      + git_clone_url               = (known after apply)
      + 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                        = "methylseq"
      + node_id                     = (known after apply)
      + primary_language            = (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)
      + topics                      = (known after apply)
      + visibility                  = (known after apply)
    }

  # github_repository.pipelines["testpipeline"] will be created
  + resource "github_repository" "pipelines" {
      + allow_auto_merge            = false
      + allow_merge_commit          = true
      + allow_rebase_merge          = true
      + allow_squash_merge          = true
      + archived                    = false
      + default_branch              = (known after apply)
      + delete_branch_on_merge      = false
      + etag                        = (known after apply)
      + full_name                   = (known after apply)
      + git_clone_url               = (known after apply)
      + 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                        = "testpipeline"
      + node_id                     = (known after apply)
      + primary_language            = (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)
      + topics                      = (known after apply)
      + visibility                  = (known after apply)
    }

  # github_team.infrastructure will be created
  + resource "github_team" "infrastructure" {
      + create_default_maintainer = false
      + description               = "The best team according to them"
      + etag                      = (known after apply)
      + id                        = (known after apply)
      + members_count             = (known after apply)
      + name                      = "infrastructure"
      + node_id                   = (known after apply)
      + parent_team_read_id       = (known after apply)
      + parent_team_read_slug     = (known after apply)
      + privacy                   = "closed"
      + slug                      = (known after apply)
    }

  # github_team_members.infrastructure will be created
  + resource "github_team_members" "infrastructure" {
      + id      = (known after apply)
      + team_id = (known after apply)

      + members {
          + role     = "maintainer"
          + username = "mashehu"
        }
      + members {
          + role     = "maintainer"
          + username = "mirpedrol"
        }
    }

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

Pusher: @edmundmiller, Action: pull_request, Working Directory: ``, Workflow: Terraform

@edmundmiller
Copy link
Contributor

That's the right concept! This is where I get most of my renovatspiration https://github.com/onedr0p/home-ops/blob/920485b419bf8dccc6e6b3631f7dd43e11fc7e9b/.github/renovate.json5

"format": "json",
"versioning": "semver",
"transformTemplate": [
"{\"release\": \"{{version}}\", \"releaseTimestamp\": \"{{date}}\"}"
"$[id = 'nf-validation']"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
"$[id = 'nf-validation']"
"$[id = {{pluginName}}]"

would like to keep it not plugin specific (nf-prov will probably soon also be in the template)

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I would too, just couldn't figure that out last night and my brain gave out from daylight savings 🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Development

Successfully merging this pull request may close these issues.

2 participants