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

Add marketplace repo #33

Merged
merged 5 commits into from
Oct 19, 2023
Merged

Add marketplace repo #33

merged 5 commits into from
Oct 19, 2023

Conversation

gdams
Copy link
Member

@gdams gdams commented Oct 19, 2023

We want to split the marketplace out into it's own repo

Signed-off-by: George Adams <[email protected]>
@gdams gdams requested review from a team as code owners October 19, 2023 13:50
@github-actions

This comment has been minimized.

Signed-off-by: George Adams <[email protected]>
@github-actions

This comment has been minimized.

Signed-off-by: George Adams <[email protected]>
@github-actions

This comment has been minimized.

otterdog/adoptium.jsonnet Outdated Show resolved Hide resolved
Co-authored-by: Tim Ellison <[email protected]>
Signed-off-by: George Adams <[email protected]>
@github-actions

This comment has been minimized.

Signed-off-by: Thomas Neidhart <[email protected]>
@github-actions
Copy link

Diff for 52ca484:
Printing local diff for configuration at '/home/runner/work/.eclipsefdn/.eclipsefdn/otterdog-configs/otterdog.json'

Actions are indicated with the following symbols:
+   create
!   modify
!   forced update
-   delete

Organization adoptium[id=adoptium]
  there have been 4 validation infos, enable verbose output with '-v' to to display them.

+   add repository[name="marketplace-api.adoptium.net"] {
+     allow_auto_merge                                         = false
+     allow_forking                                            = true
+     allow_merge_commit                                       = true
+     allow_rebase_merge                                       = true
+     allow_squash_merge                                       = false
+     allow_update_branch                                      = false
+     archived                                                 = false
+     default_branch                                           = "main"
+     delete_branch_on_merge                                   = false
+     dependabot_alerts_enabled                                = true
+     dependabot_security_updates_enabled                      = true
+     description                                              = "Adoptium Marketplace API 🚀"
+     gh_pages_build_type                                      = "disabled"
+     has_discussions                                          = false
+     has_issues                                               = true
+     has_projects                                             = true
+     has_wiki                                                 = true
+     homepage                                                 = "https://marketplace-api.adoptium.net"
+     is_template                                              = false
+     merge_commit_message                                     = "PR_TITLE"
+     merge_commit_title                                       = "MERGE_MESSAGE"
+     name                                                     = "marketplace-api.adoptium.net"
+     private                                                  = false
+     secret_scanning                                          = "enabled"
+     secret_scanning_push_protection                          = "enabled"
+     squash_merge_commit_message                              = "COMMIT_MESSAGES"
+     squash_merge_commit_title                                = "COMMIT_OR_PR_TITLE"
+     template_repository                                      = null
+     topics                                                   = [
+       "adoptium"
+       "api"
+       "hacktoberfest"
+       "java"
+       "openjdk"
+       "restful-api"
+       "swagger"
+       "temurin"
+     ],
+     web_commit_signoff_required                              = false
+   }

+   add repo_secret[name="AZURE_CLIENT_ID", repository="marketplace-api.adoptium.net"] {
+     name                                                     = "AZURE_CLIENT_ID"
+   }

+   add repo_secret[name="AZURE_CLIENT_ID_OIDC", repository="marketplace-api.adoptium.net"] {
+     name                                                     = "AZURE_CLIENT_ID_OIDC"
+   }

+   add repo_secret[name="AZURE_CLIENT_SECRET", repository="marketplace-api.adoptium.net"] {
+     name                                                     = "AZURE_CLIENT_SECRET"
+   }

+   add repo_secret[name="AZURE_SUBSCRIPTION_ID", repository="marketplace-api.adoptium.net"] {
+     name                                                     = "AZURE_SUBSCRIPTION_ID"
+   }

+   add repo_secret[name="AZURE_TENANT_ID", repository="marketplace-api.adoptium.net"] {
+     name                                                     = "AZURE_TENANT_ID"
+   }
  
  Plan: 6 to add, 0 to change, 0 to delete.
Showing diff to a canonical version of the configuration at '/home/runner/work/.eclipsefdn/.eclipsefdn/otterdog-configs/otterdog.json'

Organization adoptium[id=adoptium]
--- original
+++ canonical
@@ -1,7 +1,55 @@
 local orgs = import 'vendor/otterdog-defaults/otterdog-defaults.libsonnet';
 
+local newMirrorRepo(repoName) = orgs.newRepo(repoName) {
+
+  allow_merge_commit: true
+  allow_update_branch: false
+  auto_init: false
+  default_branch: "master"
+  delete_branch_on_merge: false
+  dependabot_alerts_enabled: false
+  description: "This repo is an unmodified mirror of source code obtained from OpenJDK. It has been and may still be used to create builds that are untested and incompatible with the Java SE specification. You should not deploy or write to this code, but instead use the tested and certified Java SE compatible version that is available at https://adoptium.net."
+  has_issues: false
+  has_projects: false
+  has_wiki: false
+  homepage: "https://adoptium.net"
+  secret_scanning: "disabled"
+  secret_scanning_push_protection: "disabled"
+  web_commit_signoff_required: false
+  workflows+: {
+    enabled: false
+  }
 orgs.newOrg('adoptium') {
   _repositories+:: [
+    newMirrorRepo('alpine-jdk8u') {}
+    newMirrorRepo('jdk') {
+      description: "This repo is an unmodified mirror of source code obtained from OpenJDK. It has been and may still be used to create builds that are untested and incompatible with the Java SE specification. You should not deploy or write to this code, but instead use the tested and certified Java SE compatible version that is available at https://adoptium.net."
+    }
+    newMirrorRepo('jdk11u') {
+    }
+    newMirrorRepo('jdk16u') {}
+    newMirrorRepo('jdk17') {
+      archived: true
+    }
+    newMirrorRepo('jdk17u') {}
+    newMirrorRepo('jdk18') {
+      archived: true
+    }
+    newMirrorRepo('jdk18u') {}
+    newMirrorRepo('jdk19') {
+      archived: true
+    }
+    newMirrorRepo('jdk19u') {}
+    newMirrorRepo('jdk20') {
+      archived: true
+    }
+    newMirrorRepo('jdk20u') {}
+    newMirrorRepo('jdk21') {}
+    newMirrorRepo('jdk21u') {}
+    newMirrorRepo('jdk8u') {}
+    newMirrorRepo('jdk8u_hg') {
+      archived: true
+    }
     orgs.newRepo('.github') {
       allow_auto_merge: true
       allow_update_branch: false
@@ -68,6 +116,8 @@
     orgs.newRepo('aarch32-jdk8u_hg') {
       archived: true
       default_branch: "master"
+      description: "Mirror of the Mercurial Forest for the Linux Aarch32 port from"
+      homepage: "https://hg.openjdk.java.net/aarch32-port/jdk8u"
       web_commit_signoff_required: false
       workflows+: {
         default_workflow_permissions: "write"
@@ -127,24 +177,6 @@
         default_workflow_permissions: "write"
       }
     }
-    orgs.newRepo('alpine-jdk8u') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "This repo is an unmodified mirror of source code obtained from OpenJDK. It has been and may still be used to create builds that are untested and incompatible with the Java SE specification. You should not deploy or write to this code, but instead use the tested and certified Java SE compatible version that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      secret_scanning_push_protection: "disabled"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
     orgs.newRepo('api.adoptium.net') {
       allow_merge_commit: true
       allow_squash_merge: false
@@ -289,6 +321,8 @@
           ]
         }
       ]
+      description: "The official Adoptium Blog"
+      homepage: "https://blog.adoptium.net"
       topics+: [
         "adoptium"
         "blog"
@@ -431,6 +465,8 @@
     }
     orgs.newRepo('documentation') {
       archived: true
+      description: "The new documentation for adoptium.net will be initially created in this repo"
+      homepage: ""
       topics+: [
         "documentation"
         "hacktoberfest"
@@ -561,42 +597,6 @@
         default_workflow_permissions: "write"
       }
     }
-    orgs.newRepo('jdk') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "This repo is an unmodified mirror of source code obtained from OpenJDK. It has been and may still be used to create builds that are untested and incompatible with the Java SE specification. You should not deploy or write to this code, but instead use the tested and certified Java SE compatible version that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      secret_scanning_push_protection: "disabled"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
-    orgs.newRepo('jdk11u') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "This repo is an unmodified mirror of source code obtained from OpenJDK. It has been and may still be used to create builds that are untested and incompatible with the Java SE specification. You should not deploy or write to this code, but instead use the tested and certified Java SE compatible version that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      secret_scanning_push_protection: "disabled"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
     orgs.newRepo('jdk11u-fast-startup-incubator') {
       allow_merge_commit: true
       allow_update_branch: false
@@ -608,190 +608,6 @@
         default_workflow_permissions: "write"
       }
     }
-    orgs.newRepo('jdk16u') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "This repo is an unmodified mirror of source code obtained from OpenJDK. It has been and may still be used to create builds that are untested and incompatible with the Java SE specification. You should not deploy or write to this code, but instead use the tested and certified Java SE compatible version that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      secret_scanning_push_protection: "disabled"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
-    orgs.newRepo('jdk17') {
-      archived: true
-      default_branch: "master"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
-    orgs.newRepo('jdk17u') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "This repo is an unmodified mirror of source code obtained from OpenJDK. It has been and may still be used to create builds that are untested and incompatible with the Java SE specification. You should not deploy or write to this code, but instead use the tested and certified Java SE compatible version that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      secret_scanning_push_protection: "disabled"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
-    orgs.newRepo('jdk18') {
-      archived: true
-      default_branch: "master"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
-    orgs.newRepo('jdk18u') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "This repo is an unmodified mirror of source code obtained from OpenJDK. It has been and may still be used to create builds that are untested and incompatible with the Java SE specification. You should not deploy or write to this code, but instead use the tested and certified Java SE compatible version that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      secret_scanning_push_protection: "disabled"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
-    orgs.newRepo('jdk19') {
-      archived: true
-      default_branch: "master"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
-    orgs.newRepo('jdk19u') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "This repo is an unmodified mirror of source code obtained from OpenJDK. It has been and may still be used to create builds that are untested and incompatible with the Java SE specification. You should not deploy or write to this code, but instead use the tested and certified Java SE compatible version that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      secret_scanning_push_protection: "disabled"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
-    orgs.newRepo('jdk20') {
-      archived: true
-      default_branch: "master"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
-    orgs.newRepo('jdk20u') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "This repo is an unmodified mirror of source code obtained from OpenJDK. It has been and may still be used to create builds that are untested and incompatible with the Java SE specification. You should not deploy or write to this code, but instead use the tested and certified Java SE compatible version that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      secret_scanning_push_protection: "disabled"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
-    orgs.newRepo('jdk21') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "This repo is an unmodified mirror of source code obtained from OpenJDK. It has been and may still be used to create builds that are untested and incompatible with the Java SE specification. You should not deploy or write to this code, but instead use the tested and certified Java SE compatible version that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      secret_scanning_push_protection: "disabled"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
-    orgs.newRepo('jdk21u') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "This repo is an unmodified mirror of source code obtained from OpenJDK. It has been and may still be used to create builds that are untested and incompatible with the Java SE specification. You should not deploy or write to this code, but instead use the tested and certified Java SE compatible version that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      secret_scanning_push_protection: "disabled"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
-    orgs.newRepo('jdk8u') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "This repo is an unmodified mirror of source code obtained from OpenJDK. It has been and may still be used to create builds that are untested and incompatible with the Java SE specification. You should not deploy or write to this code, but instead use the tested and certified Java SE compatible version that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      secret_scanning_push_protection: "disabled"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
-    orgs.newRepo('jdk8u_hg') {
-      archived: true
-      default_branch: "master"
-      web_commit_signoff_required: false
-      workflows+: {
-        enabled: false
-      }
-    }
     orgs.newRepo('jenkins-helper') {
       allow_update_branch: false
       branch_protection_rules: [
@@ -928,6 +744,8 @@
           requires_pull_request: false
         }
       ]
+      description: "Development of the website has moved to https://github.com/adoptium/website-v2"
+      homepage: "https://github.com/adoptium/website-v2"
       web_commit_signoff_required: false
       workflows+: {
         default_workflow_permissions: "write"
@@ -1182,3 +1000,4 @@
     }
   ]
 }
+};

@netomi
Copy link
Contributor

netomi commented Oct 19, 2023

fyi:

  • dependabot_alerts_enabled enables alerts for security related updates that are visible in the security tab of the repo
  • dependabot_security_updates_enabled will actually allow dependabot to automatically create pull requests for these alerts

so enabling the alerts is generally advised, the other option is up to you as you might want to first review that and then ask dependabot to create a PR.

@netomi netomi merged commit c6efa75 into adoptium:main Oct 19, 2023
2 checks passed
@netomi
Copy link
Contributor

netomi commented Oct 19, 2023

repo has been added, also to PMI, so permissions should be setup in 2h.

@gdams gdams deleted the patch-2 branch October 19, 2023 19:38
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