MCPcopy Index your code
hub / github.com/dmno-dev/bumpy / validatePrNumber

Function validatePrNumber

packages/bumpy/src/commands/ci.ts:68–73  ·  view source on GitHub ↗

Validate a PR number is numeric

(pr: string)

Source from the content-addressed store, hash-verified

66
67/** Validate a PR number is numeric */
68function 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 */
76function ensureGitIdentity(rootDir: string, config: BumpyConfig): void {

Callers 6

ciCommentCommandFunction · 0.85
createVersionPrFunction · 0.85
createChannelReleasePrFunction · 0.85
enableAutoMergeFunction · 0.85
postOrUpdatePrCommentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…