The releases card shows the cut you should run
One card per release made the section grow forever, and the newest cut is the one a visitor should actually run — the rest are history, not an invitation. `limit` is the portal's mechanism for this (uhhm/portal 22d086f) and this site is pinned to PORTAL_RELEASE v0.5.2, which predates it, so the jq takes `.[0]` instead of `.[]` and that is what does the work today. `limit: 1` is declared alongside it: v0.5.2 ignores fields it does not know, so it costs nothing now and takes over when the pin moves forward, at which point the jq goes back to `.[]`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ByshXuDEzH8hXh5qp4VgGk
This commit is contained in:
co-authored by
Claude Opus 5
parent
cf5108aec4
commit
d1ae870f2d
+13
-1
@@ -138,12 +138,24 @@ alternatives:
|
|||||||
repo: redoal
|
repo: redoal
|
||||||
public: true
|
public: true
|
||||||
empty: Nothing released yet — the first cut lands here.
|
empty: Nothing released yet — the first cut lands here.
|
||||||
|
# Only the newest cut. A card per release made this section
|
||||||
|
# grow forever, and the one a visitor should run is the latest
|
||||||
|
# — the rest are history, not an invitation.
|
||||||
|
#
|
||||||
|
# `limit` is the portal mechanism for this (uhhm/portal
|
||||||
|
# 22d086f, content-reference "A resource"), and this site is
|
||||||
|
# pinned to PORTAL_RELEASE v0.5.2, which predates it. So the
|
||||||
|
# `.[0]` below is what actually does the work today and
|
||||||
|
# `limit: 1` is the same intent declared for when the pin
|
||||||
|
# moves forward; at that point `.[0]` goes back to `.[]` and
|
||||||
|
# the field takes over.
|
||||||
|
limit: 1
|
||||||
# url pinned to null while the repo is private - a private
|
# url pinned to null while the repo is private - a private
|
||||||
# release's html_url 404s for anonymous visitors, and the
|
# release's html_url 404s for anonymous visitors, and the
|
||||||
# card renders an unlinked heading instead (same lesson as
|
# card renders an unlinked heading instead (same lesson as
|
||||||
# uhhm/questions 9b7162f).
|
# uhhm/questions 9b7162f).
|
||||||
jq: >
|
jq: >
|
||||||
.[] | {name: .name, description: .body, tag: .tag_name,
|
.[0] | {name: .name, description: .body, tag: .tag_name,
|
||||||
published: .published_at, url: null}
|
published: .published_at, url: null}
|
||||||
- name: Test the iPhone app
|
- name: Test the iPhone app
|
||||||
description: >
|
description: >
|
||||||
|
|||||||
Reference in New Issue
Block a user