Skip to content

Conversation

@nearestnabors
Copy link
Contributor

@nearestnabors nearestnabors commented Jan 17, 2026

Summary

  • Adds a GitHub Action that runs on PRs modifying markdown files
  • Includes a local script (scripts/check-redirects.sh) that works via git comparison to main
  • Detects deleted .md/.mdx files and verifies they have redirect entries in next.config.ts
  • Blocks PRs and posts a comment with suggested redirect entries if any are missing

Test plan

  • Verify the action triggers on PRs that delete markdown files
  • Test locally by running ./scripts/check-redirects.sh on a branch with deleted files
  • Confirm the PR comment includes helpful fix instructions

🤖 Generated with Claude Code


Note

Introduces CI to prevent broken docs links and updates redirects/links for moved pages.

  • Adds GitHub Action check-redirects.yml that runs scripts/check-redirects.sh to detect deleted app/**/page.md(x) without entries in next.config.ts, comments details on the PR, and fails if missing
  • New scripts/check-redirects.sh validates existing redirects (placeholders, circular refs, dead destinations), supports wildcards, and suggests entries (interactive locally)
  • Updates next.config.ts with redirects moving guides/agent-frameworks and guides/tool-calling/mcp-clients to get-started/*
  • Cleans up guides metadata removing moved sections; refreshes public/llms.txt links to new get-started paths

Written by Cursor Bugbot for commit cc59b74. This will update automatically on new commits. Configure here.

Adds a GitHub Action and local script that compares the branch to main,
detects deleted markdown files, and ensures each has a corresponding
redirect entry in next.config.ts. Prevents broken bookmarks and SEO issues.

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

vercel bot commented Jan 17, 2026

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

Project Deployment Review Updated (UTC)
docs Ready Ready Preview, Comment Jan 18, 2026 8:49pm

Request Review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 4 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

fi

# Get list of deleted markdown files (comparing to base branch)
DELETED_FILES=$(git diff --name-status "$BASE_BRANCH"...HEAD 2>/dev/null | grep "^D" | grep -E '\.(md|mdx)$' | awk '{print $2}' || true)
Copy link

Choose a reason for hiding this comment

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

Script silently succeeds when base branch unavailable

High Severity

When the base branch cannot be fetched (network failure, invalid remote, wrong branch name), the script silently reports success with "No deleted markdown files found" instead of failing. The || true on the fetch command allows continuation, and the subsequent git diff against the non-existent branch fails silently due to 2>/dev/null || true. This allows PRs with deleted files to pass the check without any actual verification being performed.

Fix in Cursor Fix in Web

nearestnabors and others added 3 commits January 17, 2026 21:59
…t checker

Content moves:
- Move guides/agent-frameworks/* to get-started/agent-frameworks/*
- Move guides/tool-calling/mcp-clients/* to get-started/mcp-clients/*
- Add wildcard redirects for moved content
- Fix stale _meta.tsx references

Redirect checker enhancements:
- Interactive mode prompts for redirect destinations
- Validates existing redirects for placeholder text (REPLACE_WITH, TODO, FIXME)
- Catches circular redirects (source == destination)
- Verifies destination pages exist
- Detects both deletes and renames

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fail with error when base branch is unavailable instead of silent success
- Fix root page URL path handling (app/en/page.mdx -> /:locale)
- Only check page.md/mdx files (skip non-routable markdown like README.md)
- Use cut with tab delimiter instead of awk to handle filenames with spaces

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

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

- Adjusted the script to use cut for field extraction, improving handling of deleted and renamed page files.
- Updated informational messages to redirect stderr, ensuring clarity in user prompts.

This improves the user experience when managing redirects in the Arcade platform.
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

source: "/:locale/guides/tool-calling/mcp-clients/:path*",
destination: "/:locale/get-started/mcp-clients/:path*",
permanent: true,
},
Copy link

Choose a reason for hiding this comment

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

New redirects create chains with existing redirect destinations

Medium Severity

The new redirects from /:locale/guides/agent-frameworks and /:locale/guides/tool-calling/mcp-clients create redirect chains with existing redirects that already target those paths. For example, /:locale/home/agent-frameworks-overview redirects to /:locale/guides/agent-frameworks, which now redirects again to /:locale/get-started/agent-frameworks. Similarly, /:locale/home/mcp-clients/cursor and related paths now require two hops. This degrades user experience with extra latency and can negatively impact SEO since search engines may not follow redirect chains correctly.

Additional Locations (2)

Fix in Cursor Fix in Web

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