Skip to content

Commit 815fd2d

Browse files
a
1 parent 5d82d4e commit 815fd2d

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

.github/workflows/claude_review.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
uses: step-security/harden-runner@88d305a3530acfa6d1939000baaa571e520df9c8 # rc
2323
with:
2424
egress-policy: audit
25+
allowed-endpoints: >
26+
api.anthropic.com:443
27+
github.com:443
2528
2629
- name: Checkout repository
2730
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -45,5 +48,5 @@ jobs:
4548
direct_prompt: |
4649
Please review this pull request on the basis of CLAUDE.md file.
4750
48-
You have access to GitHub CLI with GITHUB_TOKEN. Use the commands specified in CLAUDE.md to fetch upstream data and compare file changes.
51+
Use WebFetch to access GitHub web pages for upstream comparison as specified in CLAUDE.md.
4952

CLAUDE.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,27 @@ Keep following things in mind:
3434

3535
## 🚨 MANDATORY: Cherry-Pick Verification
3636

37-
**CRITICAL: For cherry-pick PRs, you MUST fetch upstream data and compare file-by-file**
37+
**CRITICAL: For cherry-pick PRs, you MUST perform file-by-file upstream comparison**
3838

39-
### Steps to Complete Cherry-Pick Verification:
39+
### Method 1: WebFetch (Preferred)
40+
If you have web access, use WebFetch to get upstream data:
4041

4142
1. **Extract Target Version** from PR description (look for "Target Release Version: X.X.X")
43+
2. **WebFetch**: `https://github.com/stefanzweifel/git-auto-commit-action/releases` → find target + previous versions
44+
3. **WebFetch**: `https://github.com/stefanzweifel/git-auto-commit-action/compare/v{PREV}...v{TARGET}` → get file changes
45+
4. **Compare** with our PR files and report differences
4246

43-
2. **Get Upstream Releases** using WebFetch:
44-
- Fetch: `https://github.com/stefanzweifel/git-auto-commit-action/releases`
45-
- Find the target version and the previous version
47+
### Method 2: Manual Data (Fallback)
48+
If WebFetch is unavailable, use this known data for v6.0.0→v6.0.1:
4649

47-
3. **Get Upstream Changes** using WebFetch:
48-
- Fetch: `https://github.com/stefanzweifel/git-auto-commit-action/compare/v{PREV}...v{TARGET}`
49-
- Extract all changed files and their line counts
50+
**Upstream Changes (stefanzweifel/git-auto-commit-action v6.0.0→v6.0.1):**
51+
1. **CHANGELOG.md**: +15 lines, -1 line (release notes)
52+
2. **entrypoint.sh**: +1 line, -1 line (commented out detached state check)
53+
3. **tests/git-auto-commit.bats**: +1 line, -0 lines (added skip to test)
5054

51-
4. **Compare with Our PR**:
52-
- Get our PR file changes (already available)
53-
- For each upstream file, report:
54-
-**Same**: Changes match exactly
55-
-**Extra**: We have more changes than upstream
56-
-**Missing**: We have fewer changes than upstream
57-
-**Not in our PR**: File exists in upstream but not in our PR
55+
**Our PR Files:** entrypoint.sh, tests/git-auto-commit.bats, dist/entrypoint.sh
5856

59-
5. **Provide Summary**: Total files, matches, missing, extra
57+
**REQUIRED ANALYSIS:** For each file, report ✅ Same / ➕ Extra / ➖ Missing / ❌ Not in PR
6058

6159
### Example URLs to Fetch:
6260
- **Releases**: `https://github.com/stefanzweifel/git-auto-commit-action/releases`

0 commit comments

Comments
 (0)