Commit ead63f4
fix(release): route APP_VERSION update PRs to the correct branch
The script always targeted `-B master` regardless of version, so all
3.x update PRs landed on the 2.x branch (master) instead of main.
They were rightly closed there, leaving APP_VERSION on main stuck.
Changes:
- 3.x draft versions (3.*) → branch from and PR to `main`
- 2.x draft versions → branch from and PR to `master` (unchanged)
- Add early exit when no draft release exists, preventing the script
from running with an empty LATEST_DRAFT_VERSION and corrupting
APP_VERSION with an empty string
- Fix typo: LATET_DRAFT_VERSION → LATEST_DRAFT_VERSION in log message
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 9d1cec8 commit ead63f4
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
33 | 46 | | |
34 | 47 | | |
35 | 48 | | |
| |||
42 | 55 | | |
43 | 56 | | |
44 | 57 | | |
45 | | - | |
| 58 | + | |
46 | 59 | | |
47 | 60 | | |
48 | 61 | | |
49 | | - | |
| 62 | + | |
50 | 63 | | |
51 | | - | |
| 64 | + | |
52 | 65 | | |
53 | 66 | | |
54 | 67 | | |
| |||
70 | 83 | | |
71 | 84 | | |
72 | 85 | | |
73 | | - | |
| 86 | + | |
74 | 87 | | |
75 | 88 | | |
76 | 89 | | |
| |||
0 commit comments