Commit 26aac24
fix: Handle CHANGELOG.md not in PR diff for inline suggestions
GitHub PR review comments API can only target files that are part of
the PR diff. When CHANGELOG.md is not modified in the PR, we cannot
create inline suggestions and must fall back to markdown instructions.
Changes:
- Check if changelogFile is in danger.git modified/created/deleted files
- Fall back to markdown instructions when file not in diff
- Add warning log explaining why inline suggestions cannot be used
This fixes the CI error: "could not be resolved" for pull_request_review_thread.path
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent c4e607f commit 26aac24
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
106 | 121 | | |
107 | 122 | | |
108 | 123 | | |
| |||
0 commit comments