Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/auto_optimization_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<<EOF"
cat data/output/auto_optimization/task_summary.md
echo "EOF"
} >> "$GITHUB_OUTPUT"

- name: Append skip reason
if: steps.prereqs.outputs.has_anthropic_key != 'true' || steps.auto_payload.outputs.should_run != 'true'
run: |
Expand All @@ -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.
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tests/test_auto_optimization_pr_workflow_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down