diff --git a/.github/workflows/auto_optimization_pr.yml b/.github/workflows/auto_optimization_pr.yml index 17ae560..357b4f0 100644 --- a/.github/workflows/auto_optimization_pr.yml +++ b/.github/workflows/auto_optimization_pr.yml @@ -100,6 +100,15 @@ jobs: - name: Append task summary run: cat data/output/auto_optimization/task_summary.md >> "$GITHUB_STEP_SUMMARY" + - name: Export selected task summary + id: selected_tasks + run: | + { + echo "task_summary<> "$GITHUB_OUTPUT" + - name: Append skip reason if: steps.prereqs.outputs.has_anthropic_key != 'true' || steps.auto_payload.outputs.should_run != 'true' run: | @@ -124,6 +133,7 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} use_bedrock: false use_vertex: false + claude_args: --max-turns 8 prompt: | Do not ask for additional approval. Do not create a pull request yourself. The workflow will handle git, draft PR creation, and CI dispatch. @@ -139,8 +149,8 @@ jobs: ## Issue Title ${{ steps.issue_context.outputs.issue_title }} - ## Issue Body - ${{ steps.issue_context.outputs.issue_body }} + ## Selected Low-Risk Tasks + ${{ steps.selected_tasks.outputs.task_summary }} - name: Detect changes id: changes diff --git a/tests/test_auto_optimization_pr_workflow_config.py b/tests/test_auto_optimization_pr_workflow_config.py index bb1acc1..8d3869f 100644 --- a/tests/test_auto_optimization_pr_workflow_config.py +++ b/tests/test_auto_optimization_pr_workflow_config.py @@ -23,6 +23,9 @@ def test_auto_optimization_workflow_handles_monthly_task_issues(self) -> None: self.assertIn("ANTHROPIC_API_KEY", workflow) self.assertIn("prepare_auto_optimization_pr.py", workflow) self.assertIn("anthropics/claude-code-action@v1", workflow) + self.assertIn("Export selected task summary", workflow) + self.assertIn("claude_args: --max-turns 8", workflow) + self.assertIn("steps.selected_tasks.outputs.task_summary", workflow) self.assertIn("gh pr create --draft", workflow) self.assertIn("gh workflow run ci.yml", workflow) self.assertIn("fetch-depth: 0", workflow)