Skip to content

Commit d04f8d2

Browse files
committed
ci: debug
1 parent 482e861 commit d04f8d2

File tree

1 file changed

+7
-82
lines changed

1 file changed

+7
-82
lines changed

.github/workflows/review-renovate.yml

Lines changed: 7 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -24,88 +24,13 @@ jobs:
2424
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2525
with:
2626
persist-credentials: false
27-
28-
- uses: anthropics/claude-code-action/base-action@15db2b3c79c0681556c056e9bc3f61fd3fc0347d # v0.0.54
29-
id: claude
30-
env:
31-
GITHUB_TOKEN: ${{ github.token }}
27+
- uses: ./.github/actions/claude-renovate-review
28+
id: review
3229
with:
30+
github_token: ${{ github.token }}
31+
pull_request_number: ${{ github.event.pull_request.number }}
3332
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
34-
allowed_tools: 'Bash(gh pr diff:*),WebFetch(domain:github.com),WebFetch(domain:raw.githubusercontent.com)'
35-
prompt: |
36-
## Context
37-
38-
<pull_request>
39-
<number>${{ github.event.pull_request.number }}</number>
40-
<title>${{ github.event.pull_request.title }}</title>
41-
<body>
42-
${{ github.event.pull_request.body }}
43-
</body>
44-
</pull_request>
45-
46-
## Your Role
47-
48-
Conduct a detailed review of the Renovate Pull Request and evaluate the safety of merging.
49-
50-
**Important**: Do not execute local tests or build commands. This review should be conducted based solely on static analysis of changes, release notes, and impact assessment.
51-
52-
### Execution Steps
53-
54-
1. **Pull Request Analysis**
55-
- Review the Pull Request information provided as context
56-
- Retrieve the Pull Request diff using `gh pr diff ${{ github.event.pull_request.number }}`
57-
- Identify target packages and version changes
58-
59-
2. **Release Content Investigation**
60-
- Review release notes and CHANGELOG of the target package
61-
- Understand breaking changes, new features, and bug fixes
62-
- Check for security-related fixes
63-
64-
3. **Codebase Impact Analysis**
65-
- Search for usage locations of the target package in the current codebase
66-
- Verify the need for modifications due to API changes
67-
- Investigate impact on other packages due to dependency changes
68-
- Check impact on configuration files and environment settings
69-
70-
4. **Safety Assessment (3 Levels)**
71-
- **Safe**: Backward compatibility is maintained, immediately mergeable
72-
- **Needs Manual Migration**: Manual code fixes or configuration changes required
73-
- **Not Safe**: Major breaking changes or security risks present
74-
75-
### Report Format
76-
77-
```markdown
78-
## Renovate PR Review Results
79-
80-
### ⚖️ Safety Assessment:
81-
[✅ Safe | ⚠️ Needs Manual Migration | ❌ Not Safe]
82-
83-
### 🔍 Release Content Analysis
84-
- [Major changes]
85-
- [Breaking changes]
86-
- [Security fixes]
87-
88-
### 🎯 Impact Scope Investigation
89-
- [Usage location identification results]
90-
- [Impact on other dependencies]
91-
92-
### 💡 Recommended Actions
93-
- [Required modification work]
94-
- [Specific response methods]
95-
96-
### 🔗 Reference Links
97-
- [Release notes]
98-
- [CHANGELOG]
99-
```
100-
101-
- name: Get Claude Code Result
102-
id: result
33+
- name: debug
10334
env:
104-
CLAUDE_CODE_EXECUTION_FILE: ${{ steps.claude.outputs.execution_file }}
105-
run: |
106-
EOF=$(uuidgen)
107-
{
108-
echo "value<<$EOF"
109-
jq < "$CLAUDE_CODE_EXECUTION_FILE"
110-
echo "$EOF"
111-
}
35+
REVIEW_REPORT: ${{ steps.review.outputs.report }}
36+
run: echo "$REVIEW_REPORT"

0 commit comments

Comments
 (0)