You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: extract generic utilities into utils.py modules
Move fetch_json, ver_sort_key, is_date, to_date, and
filter_supported_eol_entries from redhat.py into a new
rhdh_lifecycle/utils.py module. These functions are used by
AKS/EKS/GKE/PG scripts that have no relation to the Red Hat
Product Life Cycles API.
Create rhdh_prow/utils.py with ver_sort_key (subset of lifecycle
utils). Restore rhdh_prow/__init__.py to docstring-only.
Update all imports across lifecycle and prow scripts. redhat.py
re-exports is_date, to_date, ver_sort_key for backward
compatibility.
Update AGENTS.md shared modules sync rule to reference utils.py.
Assisted-by: OpenCode
Copy file name to clipboardExpand all lines: AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ Bump all three when releasing.
78
78
79
79
`skills/prow/scripts/rhdh_prow/repo.py` and `skills/prow/scripts/rhdh_prow/yaml.py` are copies of `skills/lifecycle/scripts/rhdh_lifecycle/repo.py` and `skills/lifecycle/scripts/rhdh_lifecycle/yaml.py`. The only difference is the internal import path (`rhdh_prow.repo` vs `rhdh_lifecycle.repo`). When modifying either copy, update both to keep them in sync.
80
80
81
-
`ver_sort_key` in `skills/prow/scripts/rhdh_prow/__init__.py` is a copy of the same function in `skills/lifecycle/scripts/rhdh_lifecycle/redhat.py`. Keep both in sync.
81
+
`skills/prow/scripts/rhdh_prow/utils.py` is a subset of `skills/lifecycle/scripts/rhdh_lifecycle/utils.py`. When modifying either copy, update both to keep them in sync.
0 commit comments