Skip to content

Commit 7106cde

Browse files
authored
Merge pull request #4 from hotdata-dev/fix/cross-repo-prompt
fix: load review prompt from github-workflows repo
2 parents c87a634 + 94de918 commit 7106cde

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/claude-pr-review.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,17 @@ jobs:
1818
with:
1919
fetch-depth: 1
2020

21+
- uses: actions/checkout@v4
22+
with:
23+
repository: hotdata-dev/github-workflows
24+
path: .github-workflows
25+
sparse-checkout: docs/claude-pr-review-prompt.md
26+
sparse-checkout-cone-mode: false
27+
2128
- name: Load review prompt
2229
id: prompt
2330
run: |
24-
PROMPT=$(cat docs/claude-pr-review-prompt.md)
31+
PROMPT=$(cat .github-workflows/docs/claude-pr-review-prompt.md)
2532
echo "content<<EOF" >> $GITHUB_OUTPUT
2633
echo "$PROMPT" >> $GITHUB_OUTPUT
2734
echo "EOF" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)