(to: string)
| 179 | } |
| 180 | |
| 181 | function deriveHeading(to: string): string { |
| 182 | if (to === 'HEAD' || !to) return 'Unreleased'; |
| 183 | return to; |
| 184 | } |
| 185 | |
| 186 | function bumpSemver(v: string, kind: 'patch' | 'minor' | 'major'): string { |
| 187 | // Tolerant of "v1.2.3", "1.2.3-rc1", etc. Pre-release suffix is dropped on bump. |