Commit d461ec9
committed
feat: add --tag-filter for targeted Quay tag queries
Replace pagination-based tag fetching with a smarter approach:
- With --tag-filter: single Quay request using like:<filter> (fast, precise)
- Without filter: dual-prefix fallback (like:1. + like:2.) covering
current and upcoming RHDH major versions
This is faster than pagination (~0.5s vs ~11s) and future-proof for
RHDH 2.x without hardcoding version assumptions.
Update SKILL.md to instruct agents to derive --tag-filter from the
selected branch (e.g. release-1.10 -> --tag-filter 1.10).
Assisted-by: OpenCode
fix: paginate Quay tag API to find version tags without hardcoded prefix
Without the server-side like:1. filter, version tags are buried among
sha/sig/att artifacts. Paginate the Quay API (up to 10 pages, stopping
after 2 consecutive pages with no version tags) and filter locally with
the existing regex. The limit parameter now controls how many results
to display (latest N), while JSON output returns all matches.
Assisted-by: OpenCode
fix: warn when --tag-filter is used without --list-tags
Assisted-by: OpenCode
docs: don't hardcode main branch to a specific version in SKILL.md
Assisted-by: OpenCode1 parent c38c185 commit d461ec9
2 files changed
Lines changed: 75 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | | - | |
| 111 | + | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| |||
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
143 | | - | |
| 147 | + | |
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
| |||
Lines changed: 67 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | | - | |
| 215 | + | |
| 216 | + | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
219 | 223 | | |
220 | 224 | | |
221 | 225 | | |
222 | 226 | | |
223 | 227 | | |
224 | | - | |
225 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
226 | 262 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
233 | 272 | | |
234 | 273 | | |
235 | 274 | | |
236 | 275 | | |
237 | 276 | | |
| 277 | + | |
238 | 278 | | |
239 | 279 | | |
240 | 280 | | |
241 | 281 | | |
242 | | - | |
243 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
244 | 285 | | |
245 | 286 | | |
246 | 287 | | |
| |||
483 | 524 | | |
484 | 525 | | |
485 | 526 | | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
486 | 533 | | |
487 | 534 | | |
488 | 535 | | |
| |||
557 | 604 | | |
558 | 605 | | |
559 | 606 | | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
560 | 610 | | |
561 | 611 | | |
562 | 612 | | |
| |||
602 | 652 | | |
603 | 653 | | |
604 | 654 | | |
605 | | - | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
606 | 660 | | |
607 | 661 | | |
608 | 662 | | |
| |||
0 commit comments