From cef0113aedf4b29eaf736aabda71c4bb977d0616 Mon Sep 17 00:00:00 2001 From: Brian 'bdougie' Douglas Date: Fri, 3 Oct 2025 06:37:41 -0700 Subject: [PATCH] fix: use PR base ref instead of hardcoded origin/main in workflow Generated with [Continue](https://continue.dev) Co-Authored-By: Continue --- docs/guides/continue-docs-mcp-cookbook.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/continue-docs-mcp-cookbook.mdx b/docs/guides/continue-docs-mcp-cookbook.mdx index 3dab28a94..76c4637dd 100644 --- a/docs/guides/continue-docs-mcp-cookbook.mdx +++ b/docs/guides/continue-docs-mcp-cookbook.mdx @@ -374,10 +374,10 @@ jobs: echo "🔍 Analyzing code changes for documentation needs..." # Get changed files - git diff origin/main..HEAD --name-only > changed_files.txt + git diff origin/${{ github.base_ref }}..HEAD --name-only > changed_files.txt # Create detailed diff - git diff origin/main..HEAD > changes.diff + git diff origin/${{ github.base_ref }}..HEAD > changes.diff # Use Continue agent to check if docs need updates PROMPT="Review these code changes and determine if documentation updates are needed.