This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git


The following commit(s) were added to refs/heads/main by this push:
     new 85fce34  Remove GitHub as a distribution platform
85fce34 is described below

commit 85fce348c2f7ba017a94410494171d48dfa8a07e
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon Aug 11 14:36:30 2025 +0100

    Remove GitHub as a distribution platform
---
 atr/models/sql.py          | 14 +++++++-------
 atr/routes/distribution.py | 14 +++++++-------
 2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/atr/models/sql.py b/atr/models/sql.py
index 7fd2f01..bf8e822 100644
--- a/atr/models/sql.py
+++ b/atr/models/sql.py
@@ -107,13 +107,13 @@ class DistributionPlatform(enum.Enum):
         # 
template_staging_url="https://hub.docker.com/v2/namespaces/{owner_namespace}/repositories/{package}/tags/{version}";,
         default_owner_namespace="library",
     )
-    GITHUB = DistributionPlatformValue(
-        name="GitHub",
-        
template_url="https://api.github.com/repos/{owner_namespace}/{package}/releases/tags/v{version}";,
-        # Combine with {"prerelease": true}
-        
template_staging_url="https://api.github.com/repos/{owner_namespace}/{package}/releases";,
-        requires_owner_namespace=True,
-    )
+    # GITHUB = DistributionPlatformValue(
+    #     name="GitHub",
+    #     
template_url="https://api.github.com/repos/{owner_namespace}/{package}/releases/tags/v{version}";,
+    #     # Combine with {"prerelease": true}
+    #     
template_staging_url="https://api.github.com/repos/{owner_namespace}/{package}/releases";,
+    #     requires_owner_namespace=True,
+    # )
     MAVEN = DistributionPlatformValue(
         name="Maven Central",
         
template_url="https://search.maven.org/solrsearch/select?q=g:{owner_namespace}+AND+a:{package}+AND+v:{version}&core=gav&rows=20&wt=json";,
diff --git a/atr/routes/distribution.py b/atr/routes/distribution.py
index 2b0bc77..5ccbf03 100644
--- a/atr/routes/distribution.py
+++ b/atr/routes/distribution.py
@@ -368,10 +368,10 @@ def _distribution_upload_date(  # noqa: C901
             if not (pushed_at := 
DockerResponse.model_validate(data).tag_last_pushed):
                 return None
             return datetime.datetime.fromisoformat(pushed_at.rstrip("Z"))
-        case sql.DistributionPlatform.GITHUB:
-            if not (published_at := 
GitHubResponse.model_validate(data).published_at):
-                return None
-            return datetime.datetime.fromisoformat(published_at.rstrip("Z"))
+        # case sql.DistributionPlatform.GITHUB:
+        #     if not (published_at := 
GitHubResponse.model_validate(data).published_at):
+        #         return None
+        #     return datetime.datetime.fromisoformat(published_at.rstrip("Z"))
         case sql.DistributionPlatform.MAVEN:
             m = MavenResponse.model_validate(data)
             docs = m.response.docs
@@ -422,9 +422,9 @@ def _distribution_web_url(  # noqa: C901
             # The best we can do on Docker Hub is:
             # f"https://hub.docker.com/_/{package}";
             return None
-        case sql.DistributionPlatform.GITHUB:
-            gh = GitHubResponse.model_validate(data)
-            return gh.html_url
+        # case sql.DistributionPlatform.GITHUB:
+        #     gh = GitHubResponse.model_validate(data)
+        #     return gh.html_url
         case sql.DistributionPlatform.MAVEN:
             return None
         case sql.DistributionPlatform.NPM:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to