Skip to content

feat(comment-preview-url): support additional-urls for co-tenant review surfaces#92

Merged
patrick-hermann-sva merged 1 commit into
mainfrom
feat/comment-preview-url-additional-urls
May 18, 2026
Merged

feat(comment-preview-url): support additional-urls for co-tenant review surfaces#92
patrick-hermann-sva merged 1 commit into
mainfrom
feat/comment-preview-url-additional-urls

Conversation

@patrick-hermann-sva
Copy link
Copy Markdown
Contributor

Summary

Adds an optional additional-urls input to call-comment-preview-url.yaml, taking a comma-separated list of Label=URL pairs that get appended as extra rows in the preview comment table.

Why

stuttgart-things/homerun2-git-pitcher's PR-preview shape (issue #25) puts the review surface on a co-tenanted workload, not on the SUT itself. git-pitcher exposes only /health and /metrics at git-pr-<num>.…; the events it produces are reviewed via a co-tenanted core-catcher dashboard at cc-git-pr-<num>.…. Without this input, the preview comment only points at the SUT hostname and reviewers have to guess at the dashboard URL.

Caller usage

- uses: stuttgart-things/github-workflow-templates/.github/workflows/call-comment-preview-url.yaml@main
  with:
    hostname-prefix: git-pr
    hostname-domain: homerun2-dev.sthings-vsphere.labul.sva.de
    namespace-prefix: homerun2-git-pitcher-pr
    additional-urls: 'Dashboard=https://cc-git-pr-${{ github.event.number }}.homerun2-dev.sthings-vsphere.labul.sva.de'

Result in the comment:

| | |
|--|--|
| URL | https://git-pr-30.homerun2-dev.… |
| Health | https://git-pr-30.homerun2-dev.…/health |
| Dashboard | https://cc-git-pr-30.homerun2-dev.… |
| Namespace | homerun2-git-pitcher-pr-30 |
| ArgoCD | homerun2-git-pitcher-pr-30 |

Compatibility

Existing callers (omni-pitcher, demo-pitcher, scout, core-catcher in this org) all pass nothing for additional-urls — input defaults to "" and the extra-rows block collapses to nothing. Pure addition, no behaviour change for them.

Test plan

  • Defaulted input renders identical body to today's output (manual trace through the github-script)
  • Trigger by calling from a git-pitcher PR with the new field set; visually verify the Dashboard row lands between Health and Namespace

Refs stuttgart-things/homerun2-git-pitcher#25

🤖 Generated with Claude Code

…view surfaces

Adds an optional `additional-urls` input that takes a comma-separated
list of `Label=URL` pairs and appends them as extra rows in the
preview comment table.

Motivated by stuttgart-things/homerun2-git-pitcher's PR-preview shape:
git-pitcher itself exposes only /health and /metrics, but the events
it produces are reviewed via a co-tenanted core-catcher dashboard at a
separate hostname. Without this, the preview comment only points at
git-pr-<num>.… (no UI) and reviewers have to guess at cc-git-pr-<num>.…

Existing callers (omni-pitcher, demo-pitcher, scout, core-catcher) are
unaffected — input defaults to empty string and the extra-rows block
collapses to nothing.

Caller usage:
  additional-urls: 'Dashboard=https://cc-git-pr-${{ github.event.number }}.…'

Refs stuttgart-things/homerun2-git-pitcher#25

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@patrick-hermann-sva patrick-hermann-sva merged commit 97ebd53 into main May 18, 2026
1 check passed
patrick-hermann-sva added a commit to stuttgart-things/homerun2-git-pitcher that referenced this pull request May 18, 2026
git-pitcher itself exposes only /health and /metrics — the actual
review surface for a PR preview is the co-tenanted core-catcher
dashboard. Pass cc-git-pr-<num>.… through the new additional-urls
input on the comment-preview-url workflow template
(stuttgart-things/github-workflow-templates#92).

Refs #25

Co-authored-by: sthings user <sthings@dev-vm3.tiab.labda.sva.de>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
patrick-hermann-sva added a commit that referenced this pull request May 19, 2026
Commit 97ebd53 added an `additional-urls` input whose `description`
block embedded a literal `${{ github.event.number }}` expression
inside the example string. GitHub Actions evaluates `${{ }}` even
inside `description:` text, and `github.event.number` isn't resolvable
at workflow-load time — every caller of this reusable workflow has
been failing with "This run likely failed because of a workflow file
issue" since the merge of #92 on 2026-05-18T12:40Z.

Confirmed broken on:
- stuttgart-things/homerun2-git-pitcher (first failure 37s after #92)
- stuttgart-things/homerun2-led-catcher (every run on its new PR
  workflow set since landing)

Rewords the example to a placeholder (`NUMBER`) with a one-line note
pointing the reader at the caller-side expression. Pure docs change;
no behaviour change for callers.

Co-authored-by: sthings user <sthings@dev-vm3.tiab.labda.sva.de>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant