Validate a PR number is numeric
(pr: string)
| 66 | |
| 67 | /** Validate a PR number is numeric */ |
| 68 | function validatePrNumber(pr: string): string { |
| 69 | if (!/^\d+$/.test(pr)) { |
| 70 | throw new Error(`Invalid PR number: ${pr}`); |
| 71 | } |
| 72 | return pr; |
| 73 | } |
| 74 | |
| 75 | /** Configure git identity for CI commits if not already set */ |
| 76 | function ensureGitIdentity(rootDir: string, config: BumpyConfig): void { |
no outgoing calls
no test coverage detected
searching dependent graphs…