Commit 803fa00
committed
fix(cli_audit): filter pre-releases from Atom feed for all GitHub repos
Extend pre-release filtering from Python-only to all GitHub repos
- Filter out rc, alpha, beta suffixes (e.g., v29.0.0-rc.1, v3.15.0a1)
- Accept only stable versions matching vX.Y or vX.Y.Z pattern
- Pick highest stable version by semantic version comparison
- Fixes Docker showing 29.0.0-rc.1 as upgrade target when 28.5.1 is latest stable
The Atom feed is a fallback when GitHub API is rate-limited or
/releases/latest doesn't exist.
Pre-releases in the Atom feed would
previously be treated as stable versions, causing incorrect upgrade
prompts for alpha/beta/rc versions across all tools.1 parent 28605a0 commit 803fa00
1 file changed
Lines changed: 23 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2134 | 2134 | | |
2135 | 2135 | | |
2136 | 2136 | | |
2137 | | - | |
2138 | | - | |
2139 | | - | |
2140 | | - | |
2141 | | - | |
2142 | | - | |
2143 | | - | |
2144 | | - | |
2145 | | - | |
2146 | | - | |
2147 | | - | |
2148 | | - | |
2149 | | - | |
2150 | | - | |
2151 | | - | |
2152 | | - | |
2153 | | - | |
2154 | | - | |
2155 | | - | |
2156 | | - | |
2157 | | - | |
2158 | | - | |
2159 | | - | |
2160 | | - | |
2161 | | - | |
2162 | | - | |
2163 | | - | |
2164 | | - | |
2165 | | - | |
2166 | | - | |
2167 | | - | |
2168 | | - | |
2169 | | - | |
2170 | | - | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
2171 | 2160 | | |
2172 | 2161 | | |
2173 | 2162 | | |
| |||
0 commit comments