You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2025/10/16 07:50:19 UTC

(airflow-site) branch improve-image-refreshing-script created (now ca8b1418f6)

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

potiuk pushed a change to branch improve-image-refreshing-script
in repository https://gitbox.apache.org/repos/asf/airflow-site.git


      at ca8b1418f6 Improve the script to refresh images

This branch includes the following new commits:

     new ca8b1418f6 Improve the script to refresh images

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(airflow-site) 01/01: Improve the script to refresh images

Posted by po...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch improve-image-refreshing-script
in repository https://gitbox.apache.org/repos/asf/airflow-site.git

commit ca8b1418f66ddf4abc9f55640322386beba214f9
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Thu Oct 16 09:49:44 2025 +0200

    Improve the script to refresh images
---
 .github/scripts/refresh_pmc_committer_images.py    |  17 ++++++++++++-----
 .../site/static/external/profiles/bugraoz93.png    | Bin 215583 -> 28207 bytes
 .../site/static/external/profiles/criccomini.png   | Bin 137814 -> 46931 bytes
 .../site/static/external/profiles/guan404ming.png  | Bin 322729 -> 40303 bytes
 .../site/static/external/profiles/jason810496.png  | Bin 99757 -> 12364 bytes
 .../site/static/external/profiles/jgao54.png       | Bin 103574 -> 297105 bytes
 .../site/static/external/profiles/msumit.png       | Bin 30478 -> 30499 bytes
 .../site/static/external/profiles/rawwar.png       | Bin 22849 -> 24404 bytes
 .../site/static/external/profiles/sekikn.png       | Bin 2480 -> 121774 bytes
 .../static/external/profiles/shubhamraj-git.png    | Bin 206879 -> 26429 bytes
 .../static/external/profiles/vatsrahul1001.png     | Bin 207387 -> 25702 bytes
 11 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/.github/scripts/refresh_pmc_committer_images.py b/.github/scripts/refresh_pmc_committer_images.py
index a4df19f5b0..a7cdf075da 100644
--- a/.github/scripts/refresh_pmc_committer_images.py
+++ b/.github/scripts/refresh_pmc_committer_images.py
@@ -19,21 +19,28 @@
 # /// script
 # requires-python = ">=3.9"
 # dependencies = [
+#   "rich>=13.3.4",
 #   "requests>=2.32.2",
 # ]
 # ///
 
 import os
+from pathlib import Path
+
 import requests
 import json
-def refresh_committer_pmc_images(file_path):
+from rich import print
+
+AIRFLOW_SOURCES_ROOT = Path(__file__).parents[2]
 
+def refresh_committer_pmc_images(file_path: Path):
     with open(file_path) as f:
         pmc_committer_data = json.load(f)
     for data in pmc_committer_data:
         github_url = data.get("github")
         username = github_url.split("/")[-1]
         image_url = github_url+'.png'
+        print(f"Downloading image for: [magenta]{data.get("name")}[/] from {image_url}")
         response = requests.get(image_url)
         if response.status_code == 200:
             with open(f'landing-pages/site/static/external/profiles/{username}.png', 'wb') as f:
@@ -43,8 +50,8 @@ def refresh_committer_pmc_images(file_path):
 
 
 if __name__ == "__main__":
-    pmc_committer_files = os.environ.get("PMC_COMMITTERS_FILES")
+    pmc_committer_files = os.environ.get("PMC_COMMITTERS_FILES",
+                                         "landing-pages/site/data/committers.json,landing-pages/site/data/pmc.json")
     if pmc_committer_files:
-        file_paths = pmc_committer_files.split(",")
-        for file_path in file_paths:
-            refresh_committer_pmc_images(file_path)
+        for file_path in pmc_committer_files.split(","):
+            refresh_committer_pmc_images(AIRFLOW_SOURCES_ROOT / file_path)
diff --git a/landing-pages/site/static/external/profiles/bugraoz93.png b/landing-pages/site/static/external/profiles/bugraoz93.png
index 246f394e24..2f4d9937a8 100644
Binary files a/landing-pages/site/static/external/profiles/bugraoz93.png and b/landing-pages/site/static/external/profiles/bugraoz93.png differ
diff --git a/landing-pages/site/static/external/profiles/criccomini.png b/landing-pages/site/static/external/profiles/criccomini.png
index 7d792645bf..e09d233f8b 100644
Binary files a/landing-pages/site/static/external/profiles/criccomini.png and b/landing-pages/site/static/external/profiles/criccomini.png differ
diff --git a/landing-pages/site/static/external/profiles/guan404ming.png b/landing-pages/site/static/external/profiles/guan404ming.png
index 403f3c62fe..0b27f1f21c 100644
Binary files a/landing-pages/site/static/external/profiles/guan404ming.png and b/landing-pages/site/static/external/profiles/guan404ming.png differ
diff --git a/landing-pages/site/static/external/profiles/jason810496.png b/landing-pages/site/static/external/profiles/jason810496.png
index c132404334..7b04db5800 100644
Binary files a/landing-pages/site/static/external/profiles/jason810496.png and b/landing-pages/site/static/external/profiles/jason810496.png differ
diff --git a/landing-pages/site/static/external/profiles/jgao54.png b/landing-pages/site/static/external/profiles/jgao54.png
index 85e5efdb77..61a3fb5184 100644
Binary files a/landing-pages/site/static/external/profiles/jgao54.png and b/landing-pages/site/static/external/profiles/jgao54.png differ
diff --git a/landing-pages/site/static/external/profiles/msumit.png b/landing-pages/site/static/external/profiles/msumit.png
index f1009a4a4d..bf5f0be093 100644
Binary files a/landing-pages/site/static/external/profiles/msumit.png and b/landing-pages/site/static/external/profiles/msumit.png differ
diff --git a/landing-pages/site/static/external/profiles/rawwar.png b/landing-pages/site/static/external/profiles/rawwar.png
index d1e027b987..adb9b07a3c 100644
Binary files a/landing-pages/site/static/external/profiles/rawwar.png and b/landing-pages/site/static/external/profiles/rawwar.png differ
diff --git a/landing-pages/site/static/external/profiles/sekikn.png b/landing-pages/site/static/external/profiles/sekikn.png
index 9c1b7e2823..f232fe47a4 100644
Binary files a/landing-pages/site/static/external/profiles/sekikn.png and b/landing-pages/site/static/external/profiles/sekikn.png differ
diff --git a/landing-pages/site/static/external/profiles/shubhamraj-git.png b/landing-pages/site/static/external/profiles/shubhamraj-git.png
index 2d59f85ff6..0fcbdc3cec 100644
Binary files a/landing-pages/site/static/external/profiles/shubhamraj-git.png and b/landing-pages/site/static/external/profiles/shubhamraj-git.png differ
diff --git a/landing-pages/site/static/external/profiles/vatsrahul1001.png b/landing-pages/site/static/external/profiles/vatsrahul1001.png
index b0f5773e96..67b31b834d 100644
Binary files a/landing-pages/site/static/external/profiles/vatsrahul1001.png and b/landing-pages/site/static/external/profiles/vatsrahul1001.png differ