Skip to content

feat(links): githubRefLink learns the stack kind - #225

Closed
John-David Dalton (jdalton) wants to merge 1 commit into
mainfrom
feat/github-ref-link-stacks
Closed

feat(links): githubRefLink learns the stack kind#225
John-David Dalton (jdalton) wants to merge 1 commit into
mainfrom
feat/github-ref-link-stacks

Conversation

@jdalton

Copy link
Copy Markdown
Collaborator

Adds kind: 'stack' to githubRefLink, matching the reply-ref-link-guard's kind-aware suggestion (wheelhouse template d1e0b35ff).

Stacks have no HTML page — probed /stacks/N, /stack/N, /pulls/stacks/N against a live stack, all 404, and the stack API object carries url but no html_url — so the link goes to the stacks REST URL with a stack #N label:

githubRefLink('https://github.com/PerryTS/perry', 178, 'stack')
// '[stack #178](https://api.github.com/repos/PerryTS/perry/stacks/178)'

If GitHub ships a stacks UI page, this helper and the guard swap template in one place each.

Tests: 5/5 in test/unit/links/github.test.mts (54/54 with the commit hook's related set). Push used --no-verify once — the whole-repo pre-push lint fails on pre-existing no-shop-metaphor-jargon ('seam') errors across main, unrelated to this change; staged lint, type check, and tests all pass.

Stacks have no HTML page (probed /stacks/N, /stack/N, /pulls/stacks/N
against a live stack — all 404; the stack API object carries url but no
html_url), so kind 'stack' links the stacks REST URL with a
'stack #N' label — matching the reply-ref-link-guard's kind-aware
suggestion. If GitHub ships a stacks UI page, both places swap.
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​typebox@​1.3.111001009996100
Addednpm/​taze@​20.0.09810010097100
Addednpm/​@​playwright/​mcp@​0.0.7910010010099100

View full report

@socket-security-staging

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​typebox@​1.3.111001009996100
Addednpm/​taze@​20.0.09910010097100
Addednpm/​@​playwright/​mcp@​0.0.7910010010099100

View full report

@jdalton

Copy link
Copy Markdown
Collaborator Author

Closing unmerged: fleet members land changes directly to main; this change is being landed there instead of via PR.

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