@@ -91,6 +91,8 @@ export interface ReleaserConfig {
9191 pullRequestTitlePattern ?: string ;
9292 tagSeparator ?: string ;
9393 separatePullRequests ?: boolean ;
94+ labels ?: string [ ] ;
95+ releaseLabels ?: string [ ] ;
9496
9597 // Changelog options
9698 changelogSections ?: ChangelogSection [ ] ;
@@ -137,7 +139,7 @@ interface ReleaserConfigJson {
137139 'pull-request-title-pattern' ?: string ;
138140 'separate-pull-requests' ?: boolean ;
139141 'tag-separator' ?: string ;
140- 'extra-files' ?: string [ ] ;
142+ 'extra-files' ?: ExtraFile [ ] ;
141143 'version-file' ?: string ;
142144 'snapshot-label' ?: string ; // Java-only
143145}
@@ -164,7 +166,7 @@ export interface ManifestOptions {
164166 commitSearchDepth ?: number ;
165167}
166168
167- interface ReleaserPackageConfig extends ReleaserConfigJson {
169+ export interface ReleaserPackageConfig extends ReleaserConfigJson {
168170 'package-name' ?: string ;
169171 component ?: string ;
170172 'changelog-path' ?: string ;
@@ -1169,6 +1171,8 @@ function extractReleaserConfig(
11691171 pullRequestTitlePattern : config [ 'pull-request-title-pattern' ] ,
11701172 tagSeparator : config [ 'tag-separator' ] ,
11711173 separatePullRequests : config [ 'separate-pull-requests' ] ,
1174+ labels : config [ 'label' ] ?. split ( ',' ) ,
1175+ releaseLabels : config [ 'release-label' ] ?. split ( ',' ) ,
11721176 } ;
11731177}
11741178
@@ -1212,11 +1216,9 @@ async function parseConfig(
12121216 separatePullRequests : config [ 'separate-pull-requests' ] ,
12131217 groupPullRequestTitlePattern : config [ 'group-pull-request-title-pattern' ] ,
12141218 plugins : config [ 'plugins' ] ,
1215- labels : configLabel === undefined ? undefined : [ configLabel ] ,
1216- releaseLabels :
1217- configReleaseLabel === undefined ? undefined : [ configReleaseLabel ] ,
1218- snapshotLabels :
1219- configSnapshotLabel === undefined ? undefined : [ configSnapshotLabel ] ,
1219+ labels : configLabel ?. split ( ',' ) ,
1220+ releaseLabels : configReleaseLabel ?. split ( ',' ) ,
1221+ snapshotLabels : configSnapshotLabel ?. split ( ',' ) ,
12201222 releaseSearchDepth : config [ 'release-search-depth' ] ,
12211223 commitSearchDepth : config [ 'commit-search-depth' ] ,
12221224 sequentialCalls : config [ 'sequential-calls' ] ,
0 commit comments