Skip to content

ci: trigger reindex when MDX frontmatter changes#2384

Open
blakecduncan wants to merge 2 commits intomainfrom
blake/revalidate-frontmatter-reindex
Open

ci: trigger reindex when MDX frontmatter changes#2384
blakecduncan wants to merge 2 commits intomainfrom
blake/revalidate-frontmatter-reindex

Conversation

@blakecduncan
Copy link
Collaborator

@blakecduncan blakecduncan commented Mar 5, 2026

Summary

  • Detects frontmatter changes (e.g. slug updates) in MDX files during the revalidation workflow
  • Triggers the SDK content indexer in the docs repo via repository_dispatch when frontmatter changes are detected, keeping path indices up to date
  • Uses the same dispatch pattern as the existing trigger-sdk-indexer.yml workflow

Resolves DX-2383

Test plan

  • Merge and push a commit that changes frontmatter in a file under docs/pages/
  • Verify the Revalidate SDK Content workflow runs and detects the frontmatter change
  • Verify the index-sdk-references workflow is triggered in the docs repo
  • Verify a content-only change (no frontmatter diff) does NOT trigger the indexer

🤖 Generated with Claude Code


PR-Codex overview

This PR enhances the GitHub Actions workflow by adding functionality to detect changes in frontmatter for files in the /docs/pages/ directory. If changes are detected, it triggers an SDK content reindexing process.

Detailed summary

  • Added a check for frontmatter changes in modified files.
  • Introduced the extract_frontmatter function to extract frontmatter from files.
  • Updated output to include frontmatterChanged status.
  • Added a new job to trigger reindexing if frontmatter changes are detected.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

blakecduncan and others added 2 commits March 4, 2026 17:11
Detect frontmatter diffs in changed docs pages and send frontmatterChanged
to markdown revalidation once per run. Fail the workflow when reindex was
requested but not successfully triggered.

Made-with: Cursor
Remove over-engineered API pass-through for frontmatter reindex.
Trigger SDK indexer directly via repository_dispatch (matching
existing trigger-sdk-indexer.yml pattern) instead of routing
through the docs-site revalidation API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
aa-sdk-ui-demo Ready Ready Preview, Comment Mar 5, 2026 6:02pm

Request Review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

2 participants