Repository script API / utils/release-pr-title / publicToolReleaseTitleOptions
Function: publicToolReleaseTitleOptions()
publicToolReleaseTitleOptions(
packageName,component): {component-no-space?:undefined;pull-request-title-pattern?:undefined; } | {component-no-space:boolean;pull-request-title-pattern:string; }
Defined in: utils/release-pr-title.mjs:8
Builds title settings that show a public tool's npm scope while keeping its release component parseable.
Parameters
packageName
any
The public tool name from its package manifest.
component
any
The release component used for its tag.
Returns
{ component-no-space?: undefined; pull-request-title-pattern?: undefined; } | { component-no-space: boolean; pull-request-title-pattern: string; }
Throws
When a Pumpkin-scoped package name does not match its release component.