Skip to content

Use changed-pages.json for preview comment links - #294

Draft
reakaleek wants to merge 1 commit into
mainfrom
cursor/git-diff-exporter
Draft

Use changed-pages.json for preview comment links#294
reakaleek wants to merge 1 commit into
mainfrom
cursor/git-diff-exporter

Conversation

@reakaleek

Copy link
Copy Markdown
Member

Why

  • Codex and docs preview comments invent URLs from changed file paths. Those links miss navigation rules, path prefixes, and snippet include mapping.
  • The docs-builder git-diff exporter writes accurate page URLs to changed-pages.json.

What

  • Upload and download the changed-pages artifact in Codex preview and docs deploy workflows.
  • Replace path-based comment link generation with JSON from the builder artifact.
  • Fetch the PR base ref for in-container git diff when file lists are not set.

Notes

  • Requires a docs-builder release that includes the git-diff exporter before preview comments show page links.
  • When the artifact is missing, comments link to the full preview only.

Made with Cursor

Stop inventing preview URLs from changed file paths in GitHub Actions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant