1 line
15 KiB
JSON
1 line
15 KiB
JSON
{"repo": "0xemc/agentic-project-template", "files": {".github/actions/aider-run/action.yml": {"d67e7c5d720772b938dc9c5738b781625f841eb2": {"t": 1785747042.3441472, "n": 3559, "h": "817d935c0c84d24b", "c": "name: Aider Run\ndescription: Run Aider, push changes, post a summary comment, and update the PR description.\n\ninputs:\n prompt:\n description: Message to pass to Aider\n required: true\n pr_number:\n description: PR number to comment on and update\n required: true\n branch:\n description: Branch to push changes to\n required: true\n base_ref:\n description: Base branch for generating the diff\n required: true\n commit_message:\n description: Git commit message for the AI changes\n required: false\n default: \"chore(ai): apply AI changes [skip ci]\"\n anthropic_api_key:\n required: true\n deepseek_api_key:\n required: true\n github_token:\n required: true\n\nruns:\n using: composite\n steps:\n - name: Set up Python\n uses: actions/setup-python@v5\n with:\n python-version: '3.11'\n\n - name: Install Aider\n shell: bash\n run: pip install aider-chat\n\n - name: Run Aider\n shell: bash\n env:\n DEEPSEEK_API_KEY: ${{ inputs.deepseek_api_key }}\n ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}\n AIDER_PROMPT: ${{ inputs.prompt }}\n run: |\n git config --global user.name \"github-actions[bot]\"\n git config --global user.email \"41898282+github-actions[bot]@users.noreply.github.com\"\n\n aider --architect \\\n --model deepseek/deepseek-chat \\\n --editor-model anthropic/claude-sonnet-4-6 \\\n --yes-always \\\n --message \"$AIDER_PROMPT\" | tee /tmp/aider-output.txt\n\n - name: Push Changes\n shell: bash\n env:\n BRANCH: ${{ inputs.branch }}\n run: |\n git checkout -- .gitignore\n git clean -fdx -- '.aider*'\n git push origin \"HEAD:$BRANCH\"\n\n - name: Post Summary Comment\n shell: bash\n env:\n GH_TOKEN: ${{ inputs.github_token }}\n ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}\n PR_NUMBER: ${{ inputs.pr_number }}\n run: |\n AIDER_OUTPUT=$(tail -c 4000 /tmp/aider-output.txt)\n\n PROMPT=$(printf 'Summarise what was implemented in one short paragraph. Be direct and specific about what changed. No preamble.\\n\\n%s' \"$AIDER_OUTPUT\")\n COMMENT=$(bash \"$GITHUB_ACTION_PATH/call-llm.sh\" \\\n --model claude-haiku-4-5-20251001 \\\n --max-tokens 256 \\\n --prompt \"$PROMPT\")\n\n gh pr comment \"$PR_NUMBER\" --body \"$(printf '**AI Review Bot**\\n\\n%s' \"$COMMENT\")\"\n\n - name: Update PR Description\n shell: bash\n env:\n GH_TOKEN: ${{ inputs.github_token }}\n ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}\n PR_NUMBER: ${{ inputs.pr_number }}\n BASE_REF: ${{ inputs.base_ref }}\n run: |\n CURRENT_BODY=$(gh pr view \"$PR_NUMBER\" --json body --jq '.body')\n git diff \"origin/$BASE_REF...HEAD\" > /tmp/pr.diff\n DIFF=$(head -c 8000 /tmp/pr.diff)\n AIDER_SUMMARY=$(tail -c 2000 /tmp/aider-output.txt)\n\n PROMPT=$(printf 'Update this PR description to reflect the current AI changes. Preserve the original structure exactly — keep all existing sections, headings, and formatting. Only update content within sections where the changes are relevant. Return only the updated description text, no preamble.\\n\\nCurrent description:\\n%s\\n\\nAI changes summary:\\n%s\\n\\nDiff:\\n%s' \"$CURRENT_BODY\" \"$AIDER_SUMMARY\" \"$DIFF\")\n NEW_BODY=$(bash \"$GITHUB_ACTION_PATH/call-llm.sh\" \\\n --model claude-sonnet-4-6 \\\n --max-tokens 1024 \\\n --prompt \"$PROMPT\")\n\n gh pr edit \"$PR_NUMBER\" --body \"$NEW_BODY\"\n"}, "ab17bde4ab28a1d3dc1c3c4febaa94d7a9a23af9": {"t": 1785769995.771199, "n": 3559, "h": "817d935c0c84d24b", "c": "name: Aider Run\ndescription: Run Aider, push changes, post a summary comment, and update the PR description.\n\ninputs:\n prompt:\n description: Message to pass to Aider\n required: true\n pr_number:\n description: PR number to comment on and update\n required: true\n branch:\n description: Branch to push changes to\n required: true\n base_ref:\n description: Base branch for generating the diff\n required: true\n commit_message:\n description: Git commit message for the AI changes\n required: false\n default: \"chore(ai): apply AI changes [skip ci]\"\n anthropic_api_key:\n required: true\n deepseek_api_key:\n required: true\n github_token:\n required: true\n\nruns:\n using: composite\n steps:\n - name: Set up Python\n uses: actions/setup-python@v5\n with:\n python-version: '3.11'\n\n - name: Install Aider\n shell: bash\n run: pip install aider-chat\n\n - name: Run Aider\n shell: bash\n env:\n DEEPSEEK_API_KEY: ${{ inputs.deepseek_api_key }}\n ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}\n AIDER_PROMPT: ${{ inputs.prompt }}\n run: |\n git config --global user.name \"github-actions[bot]\"\n git config --global user.email \"41898282+github-actions[bot]@users.noreply.github.com\"\n\n aider --architect \\\n --model deepseek/deepseek-chat \\\n --editor-model anthropic/claude-sonnet-4-6 \\\n --yes-always \\\n --message \"$AIDER_PROMPT\" | tee /tmp/aider-output.txt\n\n - name: Push Changes\n shell: bash\n env:\n BRANCH: ${{ inputs.branch }}\n run: |\n git checkout -- .gitignore\n git clean -fdx -- '.aider*'\n git push origin \"HEAD:$BRANCH\"\n\n - name: Post Summary Comment\n shell: bash\n env:\n GH_TOKEN: ${{ inputs.github_token }}\n ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}\n PR_NUMBER: ${{ inputs.pr_number }}\n run: |\n AIDER_OUTPUT=$(tail -c 4000 /tmp/aider-output.txt)\n\n PROMPT=$(printf 'Summarise what was implemented in one short paragraph. Be direct and specific about what changed. No preamble.\\n\\n%s' \"$AIDER_OUTPUT\")\n COMMENT=$(bash \"$GITHUB_ACTION_PATH/call-llm.sh\" \\\n --model claude-haiku-4-5-20251001 \\\n --max-tokens 256 \\\n --prompt \"$PROMPT\")\n\n gh pr comment \"$PR_NUMBER\" --body \"$(printf '**AI Review Bot**\\n\\n%s' \"$COMMENT\")\"\n\n - name: Update PR Description\n shell: bash\n env:\n GH_TOKEN: ${{ inputs.github_token }}\n ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}\n PR_NUMBER: ${{ inputs.pr_number }}\n BASE_REF: ${{ inputs.base_ref }}\n run: |\n CURRENT_BODY=$(gh pr view \"$PR_NUMBER\" --json body --jq '.body')\n git diff \"origin/$BASE_REF...HEAD\" > /tmp/pr.diff\n DIFF=$(head -c 8000 /tmp/pr.diff)\n AIDER_SUMMARY=$(tail -c 2000 /tmp/aider-output.txt)\n\n PROMPT=$(printf 'Update this PR description to reflect the current AI changes. Preserve the original structure exactly — keep all existing sections, headings, and formatting. Only update content within sections where the changes are relevant. Return only the updated description text, no preamble.\\n\\nCurrent description:\\n%s\\n\\nAI changes summary:\\n%s\\n\\nDiff:\\n%s' \"$CURRENT_BODY\" \"$AIDER_SUMMARY\" \"$DIFF\")\n NEW_BODY=$(bash \"$GITHUB_ACTION_PATH/call-llm.sh\" \\\n --model claude-sonnet-4-6 \\\n --max-tokens 1024 \\\n --prompt \"$PROMPT\")\n\n gh pr edit \"$PR_NUMBER\" --body \"$NEW_BODY\"\n"}, "3d91e30209206505eb17267887be0dbfe672f0a7": {"t": 1785769999.4992852, "n": 3477, "h": "938aa41d30b61bba", "c": "name: Aider Run\ndescription: Run Aider, push changes, post a summary comment, and update the PR description.\n\ninputs:\n prompt:\n description: Message to pass to Aider\n required: true\n pr_number:\n description: PR number to comment on and update\n required: true\n branch:\n description: Branch to push changes to\n required: true\n base_ref:\n description: Base branch for generating the diff\n required: true\n commit_message:\n description: Git commit message for the AI changes\n required: false\n default: \"chore(ai): apply AI changes [skip ci]\"\n anthropic_api_key:\n required: true\n deepseek_api_key:\n required: true\n github_token:\n required: true\n\nruns:\n using: composite\n steps:\n - name: Set up Python\n uses: actions/setup-python@v5\n with:\n python-version: '3.11'\n\n - name: Install Aider\n shell: bash\n run: pip install aider-chat\n\n - name: Run Aider\n shell: bash\n env:\n DEEPSEEK_API_KEY: ${{ inputs.deepseek_api_key }}\n ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}\n AIDER_PROMPT: ${{ inputs.prompt }}\n run: |\n git config --global user.name \"github-actions[bot]\"\n git config --global user.email \"41898282+github-actions[bot]@users.noreply.github.com\"\n\n aider --architect \\\n --model deepseek/deepseek-chat \\\n --editor-model anthropic/claude-sonnet-4-6 \\\n --yes-always \\\n --message \"$AIDER_PROMPT\" | tee /tmp/aider-output.txt\n\n - name: Push Changes\n shell: bash\n env:\n BRANCH: ${{ inputs.branch }}\n run: |\n git checkout -- .gitignore\n git clean -fdx -- '.aider*'\n git push origin \"HEAD:$BRANCH\"\n\n - name: Post Summary Comment\n shell: bash\n env:\n GH_TOKEN: ${{ inputs.github_token }}\n ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}\n PR_NUMBER: ${{ inputs.pr_number }}\n run: |\n AIDER_OUTPUT=$(tail -c 4000 /tmp/aider-output.txt)\n\n PROMPT=$(printf 'Summarise what was implemented in one short paragraph. Be direct and specific about what changed. No preamble.\\n\\n%s' \"$AIDER_OUTPUT\")\n COMMENT=$(bash \"$GITHUB_ACTION_PATH/call-llm.sh\" \\\n --model claude-haiku-4-5-20251001 \\\n --max-tokens 256 \\\n --prompt \"$PROMPT\")\n\n gh pr comment \"$PR_NUMBER\" --body \"$(printf '**AI Review Bot**\\n\\n%s' \"$COMMENT\")\"\n\n - name: Update PR Description\n shell: bash\n env:\n GH_TOKEN: ${{ inputs.github_token }}\n ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}\n PR_NUMBER: ${{ inputs.pr_number }}\n BASE_REF: ${{ inputs.base_ref }}\n run: |\n CURRENT_BODY=$(gh pr view \"$PR_NUMBER\" --json body --jq '.body')\n git diff \"origin/$BASE_REF...HEAD\" > /tmp/pr.diff\n DIFF=$(head -c 8000 /tmp/pr.diff)\n AIDER_SUMMARY=$(tail -c 2000 /tmp/aider-output.txt)\n\n PROMPT=$(printf 'Update this PR description to reflect the current changes. Keep it concise — one short paragraph maximum. Preserve the original intent. Return only the updated description text, no preamble.\\n\\nCurrent description:\\n%s\\n\\nAI changes summary:\\n%s\\n\\nDiff:\\n%s' \"$CURRENT_BODY\" \"$AIDER_SUMMARY\" \"$DIFF\")\n NEW_BODY=$(bash \"$GITHUB_ACTION_PATH/call-llm.sh\" \\\n --model claude-haiku-4-5-20251001 \\\n --max-tokens 1024 \\\n --prompt \"$PROMPT\")\n\n gh pr edit \"$PR_NUMBER\" --body \"$NEW_BODY\"\n"}, "ecad637a11ab2496af40fd40746a9d695fc9c2dc": {"t": 1785770001.731588, "n": 3537, "h": "e50bd3110305fb6a", "c": "name: Aider Run\ndescription: Run Aider, push changes, post a summary comment, and update the PR description.\n\ninputs:\n prompt:\n description: Message to pass to Aider\n required: true\n pr_number:\n description: PR number to comment on and update\n required: true\n branch:\n description: Branch to push changes to\n required: true\n base_ref:\n description: Base branch for generating the diff\n required: true\n commit_message:\n description: Git commit message for the AI changes\n required: false\n default: \"chore(ai): apply AI changes [skip ci]\"\n anthropic_api_key:\n required: true\n deepseek_api_key:\n required: true\n github_token:\n required: true\n\nruns:\n using: composite\n steps:\n - name: Set up Python\n uses: actions/setup-python@v5\n with:\n python-version: '3.11'\n\n - name: Install Aider\n shell: bash\n run: pip install aider-chat\n\n - name: Run Aider\n shell: bash\n env:\n DEEPSEEK_API_KEY: ${{ inputs.deepseek_api_key }}\n ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}\n AIDER_PROMPT: ${{ inputs.prompt }}\n run: |\n git config --global user.name \"github-actions[bot]\"\n git config --global user.email \"41898282+github-actions[bot]@users.noreply.github.com\"\n\n aider --architect \\\n --model deepseek/deepseek-chat \\\n --editor-model anthropic/claude-sonnet-4-6 \\\n --yes-always \\\n --message \"$AIDER_PROMPT\" | tee aider-output.txt\n\n - name: Push Changes\n shell: bash\n env:\n BRANCH: ${{ inputs.branch }}\n COMMIT_MSG: ${{ inputs.commit_message }}\n run: |\n git diff --cached --quiet && git diff --quiet || \\\n git commit -m \"$COMMIT_MSG\"\n git push origin \"HEAD:$BRANCH\"\n\n - name: Post Summary Comment\n shell: bash\n env:\n GH_TOKEN: ${{ inputs.github_token }}\n ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}\n PR_NUMBER: ${{ inputs.pr_number }}\n run: |\n AIDER_OUTPUT=$(tail -c 4000 aider-output.txt)\n\n PROMPT=$(printf 'Summarise what was implemented in one short paragraph. Be direct and specific about what changed. No preamble.\\n\\n%s' \"$AIDER_OUTPUT\")\n COMMENT=$(bash \"$GITHUB_ACTION_PATH/call-llm.sh\" \\\n --model claude-haiku-4-5-20251001 \\\n --max-tokens 256 \\\n --prompt \"$PROMPT\")\n\n gh pr comment \"$PR_NUMBER\" --body \"$(printf '**AI Review Bot**\\n\\n%s' \"$COMMENT\")\"\n\n - name: Update PR Description\n shell: bash\n env:\n GH_TOKEN: ${{ inputs.github_token }}\n ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}\n PR_NUMBER: ${{ inputs.pr_number }}\n BASE_REF: ${{ inputs.base_ref }}\n run: |\n CURRENT_BODY=$(gh pr view \"$PR_NUMBER\" --json body --jq '.body')\n git diff \"origin/$BASE_REF...HEAD\" > /tmp/pr.diff\n DIFF=$(head -c 8000 /tmp/pr.diff)\n AIDER_SUMMARY=$(tail -c 2000 aider-output.txt)\n\n PROMPT=$(printf 'Update this PR description to reflect the current changes. Keep it concise — one short paragraph maximum. Preserve the original intent. Return only the updated description text, no preamble.\\n\\nCurrent description:\\n%s\\n\\nAI changes summary:\\n%s\\n\\nDiff:\\n%s' \"$CURRENT_BODY\" \"$AIDER_SUMMARY\" \"$DIFF\")\n NEW_BODY=$(bash \"$GITHUB_ACTION_PATH/call-llm.sh\" \\\n --model claude-haiku-4-5-20251001 \\\n --max-tokens 1024 \\\n --prompt \"$PROMPT\")\n\n gh pr edit \"$PR_NUMBER\" --body \"$NEW_BODY\"\n"}}}} |