From 8a991587f1f6f0d0dc3d97ed8f0748aa31e56628 Mon Sep 17 00:00:00 2001 From: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com> Date: Tue, 19 Aug 2025 16:09:08 +0200 Subject: [PATCH] chore: fix CI --- .github/workflows/claude-docs-updater.yml | 34 ++++++++++++----------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/claude-docs-updater.yml b/.github/workflows/claude-docs-updater.yml index 30f7a950..e61abfc6 100644 --- a/.github/workflows/claude-docs-updater.yml +++ b/.github/workflows/claude-docs-updater.yml @@ -5,9 +5,9 @@ on: branches: - next paths-ignore: - - 'apps/docs/**' - - '*.md' - - '.github/workflows/**' + - "apps/docs/**" + - "*.md" + - ".github/workflows/**" jobs: update-docs: @@ -23,24 +23,24 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - fetch-depth: 2 # Need previous commit for comparison + fetch-depth: 2 # Need previous commit for comparison - name: Get changed files id: changed-files run: | echo "Changed files in this push:" git diff --name-only HEAD^ HEAD | tee changed_files.txt - + # Store changed files for Claude to analyze echo "changed_files<> $GITHUB_OUTPUT git diff --name-only HEAD^ HEAD >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - + # Get the commit message and changes summary echo "commit_message<> $GITHUB_OUTPUT git log -1 --pretty=%B >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - + # Get diff for documentation context echo "commit_diff<> $GITHUB_OUTPUT git diff HEAD^ HEAD --stat >> $GITHUB_OUTPUT @@ -58,24 +58,26 @@ jobs: with: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} timeout_minutes: "30" - mode: "auto" + mode: "agent" experimental_allowed_domains: | .anthropic.com .github.com api.github.com .githubusercontent.com registry.npmjs.org - prompt: | + .task-master.dev + base_branch: "next" + direct_prompt: | You are a documentation specialist. Analyze the recent changes pushed to the 'next' branch and update the documentation accordingly. - + Recent changes: - Commit: ${{ steps.changed-files.outputs.commit_message }} - Changed files: ${{ steps.changed-files.outputs.changed_files }} - + - Changes summary: ${{ steps.changed-files.outputs.commit_diff }} - + Your task: 1. Analyze the changes to understand what functionality was added, modified, or removed 2. Check if these changes require documentation updates in apps/docs/ @@ -86,7 +88,7 @@ jobs: - Add new documentation pages if new features were added - Update the changelog or release notes if applicable 4. If no documentation updates are needed, skip creating changes - + Guidelines: - Focus only on user-facing changes that need documentation - Keep documentation clear, concise, and helpful @@ -94,7 +96,7 @@ jobs: - Maintain consistent documentation style with existing docs - Don't document internal implementation details unless they affect users - Update navigation/menu files if new pages are added - + Only make changes if the documentation truly needs updating based on the code changes. - name: Check if changes were made @@ -122,7 +124,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | git push origin ${{ steps.create-branch.outputs.branch_name }} - + # Create PR using GitHub CLI gh pr create \ --title "docs: update documentation for recent changes" \ @@ -151,4 +153,4 @@ jobs: --base next \ --head ${{ steps.create-branch.outputs.branch_name }} \ --label "documentation" \ - --label "automated" \ No newline at end of file + --label "automated"