@releasekit/notes 0.17.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -289,6 +289,25 @@ var CILabelsConfigSchema = z.object({
289
289
  minor: z.string().default("bump:minor"),
290
290
  patch: z.string().default("bump:patch")
291
291
  });
292
+ var StandingPrConfigSchema = z.object({
293
+ /** Branch name for the release PR. Default: 'release/next' */
294
+ branch: z.string().default("release/next"),
295
+ /** Title template for the release PR. Variables: ${count}, ${version}. Must start with 'chore: release' to match default skip pattern on merge. */
296
+ /* biome-ignore lint/suspicious/noTemplateCurlyInString: default template value */
297
+ title: z.string().default("chore: release ${count} package(s)"),
298
+ /** Labels to apply to the standing release PR */
299
+ labels: z.array(z.string()).default(["release"]),
300
+ /** Whether to auto-delete the release branch after PR merge. Default: true */
301
+ deleteBranchOnMerge: z.boolean().default(true),
302
+ /** Allow teams to edit the release notes section in the PR body before publishing. Default: false */
303
+ editableNotes: z.boolean().default(false),
304
+ /** Merge method to use when merging the standing release PR. Default: 'merge' */
305
+ mergeMethod: z.enum(["merge", "squash", "rebase"]).default("merge"),
306
+ /** Minimum age of the standing PR before it can be merged. Duration string (e.g. '6h', '30m', '1d'). Gate enforced via the releasekit/standing-pr status check. */
307
+ minAge: z.string().optional(),
308
+ /** Minimum number of packages with releasable changes required to create/maintain the standing PR. Below this threshold, the PR is closed and no new PR is created. */
309
+ minPackages: z.number().int().positive().optional()
310
+ });
292
311
  var CIConfigSchema = z.object({
293
312
  releaseStrategy: z.enum(["manual", "direct", "standing-pr", "scheduled"]).default("direct"),
294
313
  releaseTrigger: z.enum(["commit", "label"]).default("label"),
@@ -314,7 +333,9 @@ var CIConfigSchema = z.object({
314
333
  * Map of scope labels to package patterns.
315
334
  * When a PR has a label matching a key, only packages matching the corresponding pattern will be released.
316
335
  */
317
- scopeLabels: z.record(z.string(), z.string()).optional()
336
+ scopeLabels: z.record(z.string(), z.string()).optional(),
337
+ /** Configuration for the standing release PR feature. */
338
+ standingPr: StandingPrConfigSchema.optional()
318
339
  });
319
340
  var ReleaseCIConfigSchema = z.object({
320
341
  skipPatterns: z.array(z.string().min(1)).optional(),
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createNotesCommand
4
- } from "./chunk-KF3BKBF4.js";
4
+ } from "./chunk-MESUHGJX.js";
5
5
  import {
6
6
  readPackageVersion
7
7
  } from "./chunk-77FGMGVD.js";
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  runPipeline,
19
19
  saveAuth,
20
20
  versionOutputToChangelogInput
21
- } from "./chunk-KF3BKBF4.js";
21
+ } from "./chunk-MESUHGJX.js";
22
22
  import {
23
23
  aggregateToRoot,
24
24
  detectMonorepo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@releasekit/notes",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "Release notes and changelog generation with LLM-powered enhancement and flexible templating",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -53,7 +53,7 @@
53
53
  "commander": "^14.0.3",
54
54
  "ejs": "^4.0.1",
55
55
  "handlebars": "^4.7.9",
56
- "liquidjs": "^10.25.5",
56
+ "liquidjs": "^10.25.7",
57
57
  "minimatch": "^10.0.0",
58
58
  "openai": "^6.33.0",
59
59
  "smol-toml": "^1.6.1",
@@ -67,8 +67,8 @@
67
67
  "tsup": "^8.5.1",
68
68
  "typescript": "^5.9.3",
69
69
  "vitest": "^4.1.3",
70
- "@releasekit/core": "0.0.0",
71
- "@releasekit/config": "0.0.0"
70
+ "@releasekit/config": "0.0.0",
71
+ "@releasekit/core": "0.0.0"
72
72
  },
73
73
  "engines": {
74
74
  "node": ">=20"