Commit 3918aba
committed
fix(prepare): skip PR sync when there are zero updates and no changes to push
When no packages need updating, the release branch is identical to the default
branch. Previously we still called syncPullRequest, which attempted to create a
PR and hit a GitHub 422 ("No commits between main and release/next"). Now we
bail out early with a clear log message and return null instead.1 parent 1878df3 commit 3918aba
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
256 | 268 | | |
257 | 269 | | |
258 | 270 | | |
| |||
0 commit comments