choo121600 commented on code in PR #348:
URL: https://github.com/apache/airflow-steward/pull/348#discussion_r3322560296


##########
tools/pr-management-stats/dashboard.py:
##########
@@ -0,0 +1,1859 @@
+#!/usr/bin/env python3
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+"""
+Full HTML-rendering extension on top of reference.py.
+
+reference.py stops at fetch + classify + JSON sidecar; this script
+reuses its primitives, then computes every aggregate from aggregate.md
+and emits the 11-section dashboard from render.md.
+
+Usage:
+  dashboard.py --repo apache/airflow --viewer potiuk \\
+      [--since 2026-04-12] [--out dashboard.html]
+
+Output:
+  - <out>            HTML dashboard (all 11 sections per render.md)
+  - <out-stem>.json  Intermediate state (shape-compatible with reference.py)
+
+Design: reference.py remains untouched. This script reuses its
+fetch + classify by importing top-level functions; the JSON sidecar
+contract is preserved so existing consumers don't break.
+"""
+from __future__ import annotations
+
+import argparse
+import html
+import json
+import subprocess
+import sys
+from collections import defaultdict
+from datetime import datetime, timedelta, timezone
+from pathlib import Path
+
+from reference import (

Review Comment:
   Reworded to `"directory-portable"` across the PR body, docstring, and README.
   As you noted, the directory name and `sys.path[0]` sibling-import approach 
remain unchanged.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to