feat(site): show preview deployments in site get #616
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/thwap-pagesd!616
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/tpagectl-site-previews"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Implements roadmap #181:
site getnow shows preview deployments when any exist.site get(table format) fetches the site's previews viaGET /api/v1/sites/{name}/previewsand, when non-empty, prints aPreviews:block with one line per preview — branch, path (/preview/<branch>), status, deployed — using fixed-width padding (deterministic output, no TTY dependence).docs/commands/tpagectl-site-get.mdanddocs/man/tpagectl-site-get.1regenerated.Why
Roadmap task #181, the last unchecked item in Phase 2 (Site Management Commands).
Testing
site getshowsPreviews:with branches, paths, and statuses when the endpoint returns previewsTestGetFullConfigserver now serves the previews path);--format json/yamlunaffected (no previews fetch)site-get-table.goldenregenerated to include the Previews sectiongo test -race ./...passesgolangci-lint runcleanBreaking Changes
None.
site getoutput gains aPreviews:block only when previews exist.Closes #181
site get now fetches the site's previews (GET /api/v1/sites/{name}/previews) on the table format and prints a Previews: block (branch, path, status, deployed) when any exist. The fetch is best-effort: previews disabled or an unreachable endpoint simply omit the section. Updated the command description and regenerated the site-get docs. Closes #181e7db8d7fbec8f8f4891c