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

Harmonize all mirror repos #31

Merged
merged 15 commits into from
Sep 26, 2023
Merged

Harmonize all mirror repos #31

merged 15 commits into from
Sep 26, 2023

Conversation

netomi
Copy link
Contributor

@netomi netomi commented Sep 25, 2023

This PR provides a common template function for mirror repos to setup any mirror with consistent settings.

The following changes are there compared to the status quo:

  • disable wikis / projects / issue for any mirror repo
  • disable secret scanning and push protection (secret scanning could be enabled, but push protection should most likely be disabled as its a mirror from openjdk, in the unlikely case that a secret would be detected, the mirror could not be uptodate with the upstream repo)

@netomi netomi requested a review from gdams September 25, 2023 11:15
@netomi netomi requested review from a team as code owners September 25, 2023 11:15
@github-actions

This comment has been minimized.

@netomi netomi requested a review from tellison September 25, 2023 11:19
@tellison
Copy link
Contributor

Can we disable actions running on mirror repos?

@netomi
Copy link
Contributor Author

netomi commented Sep 25, 2023

Once this is implemented (https://gitlab.eclipse.org/eclipsefdn/security/otterdog/-/issues/113), you can disable workflows on repo level using otterdog. For now, we would have to disable it manually.

Copy link
Contributor

@tellison tellison left a comment

Choose a reason for hiding this comment

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

Fix required descriptions, and add a default description.

otterdog/adoptium.jsonnet Show resolved Hide resolved
otterdog/adoptium.jsonnet Outdated Show resolved Hide resolved
otterdog/adoptium.jsonnet Outdated Show resolved Hide resolved
otterdog/adoptium.jsonnet Outdated Show resolved Hide resolved
otterdog/adoptium.jsonnet Show resolved Hide resolved
otterdog/adoptium.jsonnet Show resolved Hide resolved
otterdog/adoptium.jsonnet Show resolved Hide resolved
otterdog/adoptium.jsonnet Show resolved Hide resolved
otterdog/adoptium.jsonnet Show resolved Hide resolved
otterdog/adoptium.jsonnet Outdated Show resolved Hide resolved
@tellison
Copy link
Contributor

☝️ unless you can think of a better way to 'parameterise' the standard description. These are required as per the Adoptium governance directions.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@netomi
Copy link
Contributor Author

netomi commented Sep 25, 2023

☝️ unless you can think of a better way to 'parameterise' the standard description. These are required as per the Adoptium governance directions.

With my latest commit I added templating of the description / homepage for mirror repos so we dont have to repeat it all the time.

@github-actions

This comment has been minimized.

@netomi
Copy link
Contributor Author

netomi commented Sep 25, 2023

We have now also added support for workflow settings on repo level. It will be specified like that for the mirror repos:

local newMirrorRepo(repoName) = orgs.newRepo(repoName) {
  jdk_name:: jdkName(repoName),
  ...
  workflows+: {
    enabled: false
  }
}

Adding this change to this PR would lead to weird effects as I have to reimport the config first. I would suggest to merge this PR first and then in an additional one to disable workflows for all mirrors.

@tellison
Copy link
Contributor

Adding this change to this PR would lead to weird effects as I have to reimport the config first. I would suggest to merge this PR first and then in an additional one to disable workflows for all mirrors.

Indeed, let's make it a separate PR.

@github-actions

This comment has been minimized.

Comment on lines +3 to +10
local jdkName(name) =
if std.startsWith(name, "jdk") then
"JDK%s" % [ std.substr(name, 3, std.length(name) - 3)]
else
name;

local newMirrorRepo(repoName) = orgs.newRepo(repoName) {
jdk_name:: jdkName(repoName),
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably OK, but IMHO no need to be so fancy and parse the repo name - which is not enforced but just a standard. I would have just set the default jdk_name to be "OpenJDK" and default jdk_url to be "https://github.com/openjdk".

No objection to this version though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried to adhere to the existing descriptions which use a phrase like JDKxx mirror. Changing that to OpenJDK should make the configuration simpler, if you are ok with that I can make the change.

otterdog/adoptium.jsonnet Outdated Show resolved Hide resolved
@github-actions

This comment has been minimized.

netomi and others added 3 commits September 26, 2023 10:32
Signed-off-by: Thomas Neidhart <[email protected]>
Co-authored-by: Tim Ellison <[email protected]>
Signed-off-by: Thomas Neidhart <[email protected]>
Co-authored-by: Tim Ellison <[email protected]>
Signed-off-by: Thomas Neidhart <[email protected]>
netomi and others added 12 commits September 26, 2023 10:32
Co-authored-by: Tim Ellison <[email protected]>
Signed-off-by: Thomas Neidhart <[email protected]>
Co-authored-by: Tim Ellison <[email protected]>
Signed-off-by: Thomas Neidhart <[email protected]>
Co-authored-by: Tim Ellison <[email protected]>
Signed-off-by: Thomas Neidhart <[email protected]>
Co-authored-by: Tim Ellison <[email protected]>
Signed-off-by: Thomas Neidhart <[email protected]>
Co-authored-by: Tim Ellison <[email protected]>
Signed-off-by: Thomas Neidhart <[email protected]>
Co-authored-by: Tim Ellison <[email protected]>
Signed-off-by: Thomas Neidhart <[email protected]>
Co-authored-by: Tim Ellison <[email protected]>
Signed-off-by: Thomas Neidhart <[email protected]>
Co-authored-by: Tim Ellison <[email protected]>
Signed-off-by: Thomas Neidhart <[email protected]>
Co-authored-by: Tim Ellison <[email protected]>
Signed-off-by: Thomas Neidhart <[email protected]>
@github-actions
Copy link

Diff for 758679a:
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.

  
!   repository[name="aarch32-jdk8u"] {
!     homepage                                                 = "" -> null
!   }

  
!   repository[name="alpine-jdk8u"] {
!     description                                              = "JDK8u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk8u. 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" -> "JDK8u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk8u. 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 of the code that is available at https://adoptium.net."
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = "" -> "https://adoptium.net"
!     secret_scanning                                          = "enabled" -> "disabled"
!     secret_scanning_push_protection                          = "enabled" -> "disabled"
!   }

  
!   repository[name="jdk"] {
!     description                                              = "JDK mirror from https://github.com/openjdk/jdk" -> "This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk. 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 of the code that is available at https://adoptium.net."
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = "" -> "https://adoptium.net"
!     secret_scanning                                          = "enabled" -> "disabled"
!     secret_scanning_push_protection                          = "enabled" -> "disabled"
!   }

  
!   repository[name="jdk11u"] {
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = "" -> "https://adoptium.net"
!     secret_scanning                                          = "enabled" -> "disabled"
!     secret_scanning_push_protection                          = "enabled" -> "disabled"
!   }

  
!   repository[name="jdk16u"] {
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = "" -> "https://adoptium.net"
!     secret_scanning                                          = "enabled" -> "disabled"
!     secret_scanning_push_protection                          = "enabled" -> "disabled"
!   }

  
!   repository[name="jdk17"] {
!     description                                              = "JDK17 mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk17. 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 of the code that is available at https://www.adoptium.net." -> "JDK17 mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk17. 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 of the code that is available at https://adoptium.net."
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = "" -> "https://adoptium.net"
!     secret_scanning                                          = "enabled" -> "disabled"
!   }

  
!   repository[name="jdk17u"] {
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = "" -> "https://adoptium.net"
!     secret_scanning                                          = "enabled" -> "disabled"
!     secret_scanning_push_protection                          = "enabled" -> "disabled"
!   }

  
!   repository[name="jdk18"] {
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = null -> "https://adoptium.net"
!     secret_scanning                                          = "enabled" -> "disabled"
!   }

  
!   repository[name="jdk18u"] {
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = null -> "https://adoptium.net"
!     secret_scanning                                          = "enabled" -> "disabled"
!     secret_scanning_push_protection                          = "enabled" -> "disabled"
!   }

  
!   repository[name="jdk19"] {
!     description                                              = "jdk19 repository" -> "JDK19 mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk19. 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 of the code that is available at https://adoptium.net."
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = null -> "https://adoptium.net"
!   }

  
!   repository[name="jdk19u"] {
!     description                                              = null -> "JDK19u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk19u. 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 of the code that is available at https://adoptium.net."
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = null -> "https://adoptium.net"
!   }

  
!   repository[name="jdk20"] {
!     description                                              = null -> "JDK20 mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk20. 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 of the code that is available at https://adoptium.net."
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = null -> "https://adoptium.net"
!   }

  
!   repository[name="jdk20u"] {
!     description                                              = null -> "JDK20u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk20u. 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 of the code that is available at https://adoptium.net."
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = null -> "https://adoptium.net"
!   }

  
!   repository[name="jdk21"] {
!     description                                              = null -> "JDK21 mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk21. 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 of the code that is available at https://adoptium.net."
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = null -> "https://adoptium.net"
!     secret_scanning                                          = "enabled" -> "disabled"
!   }

  
!   repository[name="jdk21u"] {
!     description                                              = null -> "JDK21u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk21u. 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 of the code that is available at https://adoptium.net."
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = null -> "https://adoptium.net"
!   }

  
!   repository[name="jdk8u"] {
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = "" -> "https://adoptium.net"
!   }

  
!   repository[name="jdk8u_hg"] {
!     description                                              = "JDK8u mirror from mercurial from" -> "JDK8u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK http://hg.openjdk.java.net/jdk8u/jdk8u/. 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 of the code that is available at https://adoptium.net."
!     has_issues                                               = true -> false
!     has_projects                                             = true -> false
!     has_wiki                                                 = true -> false
!     homepage                                                 = "http://hg.openjdk.java.net/jdk8u/jdk8u/" -> "https://adoptium.net"
!     secret_scanning                                          = "enabled" -> "disabled"
!   }
  
  Plan: 0 to add, 91 to change, 0 to delete.
╷
│ Error: 'GitHubProvider' object has no attribute 'rest_api'
╵
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,75 @@
 local orgs = import 'vendor/otterdog-defaults/otterdog-defaults.libsonnet';
 
+local jdkName(name) =
+  if std.startsWith(name, "jdk") then 
+    "JDK%s" % [ std.substr(name, 3, std.length(name) - 3)]
+  else
+    name;
+
+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: "%s mirror. This source code is an unmodified mirror of source code obtained from OpenJDK %s. 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 of the code that is available at https://adoptium.net." % [self.jdk_name, self.jdk_url]
+  has_issues: false
+  has_projects: false
+  has_wiki: false
+  homepage: "https://adoptium.net"
+  jdk_name:: jdkName(repoName)
+  jdk_url:: "https://github.com/openjdk/%s" % [self.name]
+  secret_scanning: "disabled"
+  secret_scanning_push_protection: "disabled"
+  web_commit_signoff_required: false
 orgs.newOrg('adoptium') {
   _repositories+:: [
+    newMirrorRepo('alpine-jdk8u') {
+      jdk_name:: "JDK8u"
+      jdk_url:: "https://github.com/openjdk/jdk8u"
+    }
+    newMirrorRepo('jdk') {
+      description: "This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk. 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 of the code that is available at https://adoptium.net."
+      jdk_url:: "https://github.com/openjdk/jdk"
+    }
+    newMirrorRepo('jdk11u') {
+    }
+    newMirrorRepo('jdk16u') {
+    }
+    newMirrorRepo('jdk17') {
+      archived: true
+    }
+    newMirrorRepo('jdk17u') {
+    }
+    newMirrorRepo('jdk18') {
+      archived: true
+    }
+    newMirrorRepo('jdk18u') {
+    }
+    newMirrorRepo('jdk19') {
+      archived: true
+    }
+    newMirrorRepo('jdk19u') {
+      default_branch: "dev"
+    }
+    newMirrorRepo('jdk20') {
+      archived: true
+    }
+    newMirrorRepo('jdk20u') {
+    }
+    newMirrorRepo('jdk21') {
+    }
+    newMirrorRepo('jdk21u') {
+    }
+    newMirrorRepo('jdk8u') {
+    }
+    newMirrorRepo('jdk8u_hg') {
+      archived: true
+      jdk_name:: "JDK8u"
+      jdk_url:: "http://hg.openjdk.java.net/jdk8u/jdk8u/"
+    }
     orgs.newRepo('.github') {
       allow_auto_merge: true
       allow_update_branch: false
@@ -48,6 +116,7 @@
       delete_branch_on_merge: false
       dependabot_alerts_enabled: false
       description: "JDK8u mirror (aarch32 port). This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/aarch32-port-jdk8u. 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 of the code that is available at https://adoptium.net."
+      jdk_url:: "https://github.com/openjdk/aarch32-port-jdk8u"
       web_commit_signoff_required: false
     }
     orgs.newRepo('aarch32-jdk8u_hg') {
@@ -102,21 +171,6 @@
       ]
       web_commit_signoff_required: false
     }
-    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: "JDK8u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk8u. 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 of the code 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
-    }
     orgs.newRepo('api.adoptium.net') {
       allow_merge_commit: true
       allow_squash_merge: false
@@ -488,36 +542,6 @@
       ]
       web_commit_signoff_required: false
     }
-    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 source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk. 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 of the code 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
-    }
-    orgs.newRepo('jdk11u') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "JDK11u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk11u. 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 of the code 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
-    }
     orgs.newRepo('jdk11u-fast-startup-incubator') {
       allow_merge_commit: true
       allow_update_branch: false
@@ -526,181 +550,6 @@
       dependabot_alerts_enabled: false
       web_commit_signoff_required: false
     }
-    orgs.newRepo('jdk16u') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "JDK16u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk16u. 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 of the code 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
-    }
-    orgs.newRepo('jdk17') {
-      archived: true
-      default_branch: "master"
-      description: "JDK17 mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk17. 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 of the code that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      web_commit_signoff_required: 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: "JDK17u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk17u. 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 of the code 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
-    }
-    orgs.newRepo('jdk18') {
-      archived: true
-      default_branch: "master"
-      description: "JDK18 mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk18. 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 of the code that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      web_commit_signoff_required: 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: "JDK18u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk18u. 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 of the code 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
-    }
-    orgs.newRepo('jdk19') {
-      archived: true
-      default_branch: "master"
-      description: "JDK19 mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk19. 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 of the code that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      web_commit_signoff_required: false
-    }
-    orgs.newRepo('jdk19u') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "dev"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "JDK19u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk19u. 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 of the code 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
-    }
-    orgs.newRepo('jdk20') {
-      archived: true
-      default_branch: "master"
-      description: "JDK20 mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk20. 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 of the code that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      web_commit_signoff_required: 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: "JDK20u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk20u. 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 of the code 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
-    }
-    orgs.newRepo('jdk21') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "JDK21 mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk21. 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 of the code 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
-    }
-    orgs.newRepo('jdk21u') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "JDK21u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk21u. 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 of the code 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
-    }
-    orgs.newRepo('jdk8u') {
-      allow_merge_commit: true
-      allow_update_branch: false
-      default_branch: "master"
-      delete_branch_on_merge: false
-      dependabot_alerts_enabled: false
-      description: "JDK8u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK https://github.com/openjdk/jdk8u. 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 of the code 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
-    }
-    orgs.newRepo('jdk8u_hg') {
-      archived: true
-      default_branch: "master"
-      description: "JDK8u mirror. This source code is an unmodified mirror of source code obtained from OpenJDK http://hg.openjdk.java.net/jdk8u/jdk8u/. 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 of the code that is available at https://adoptium.net."
-      has_issues: false
-      has_projects: false
-      has_wiki: false
-      homepage: "https://adoptium.net"
-      secret_scanning: "disabled"
-      web_commit_signoff_required: false
-    }
     orgs.newRepo('jenkins-helper') {
       allow_update_branch: false
       branch_protection_rules: [
@@ -804,12 +653,14 @@
     }
     orgs.newRepo('temurin') {
       allow_auto_merge: true
+      allow_merge_commit: false
       allow_update_branch: false
       branch_protection_rules: [
         orgs.newBranchProtectionRule('main') {
           required_approving_review_count: 1
         }
       ]
+      default_branch: "main"
       dependabot_security_updates_enabled: true
       description: "Eclipse Temurin™ project assets"
       has_wiki: false
@@ -998,3 +849,4 @@
     }
   ]
 }
+};

@netomi netomi merged commit 2c1ae6a into main Sep 26, 2023
1 check passed
@netomi netomi deleted the cleanup-mirrors branch September 26, 2023 08:34
@netomi
Copy link
Contributor Author

netomi commented Sep 26, 2023

hmm the description exceeds now the maximum allowed length of 350, need to trim that.

@netomi
Copy link
Contributor Author

netomi commented Sep 26, 2023

added a validation in otterdog to prevent that in the future.

@netomi
Copy link
Contributor Author

netomi commented Sep 26, 2023

changes are now live.

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