@postman/sdk-config 0.13.0 → 0.14.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.
package/dist/index.js CHANGED
@@ -1272,7 +1272,8 @@ function githubOutput(value, publishInfo, rawOutput, language, sourcePath, state
1272
1272
  const reviewers = mapReviewers(value.reviewers, [...sourcePath, "reviewers"], state);
1273
1273
  if (type) consume(state, [...sourcePath, "type"]);
1274
1274
  if (typeof value.makePr === "boolean") consume(state, [...sourcePath, "makePr"]);
1275
- if (value.workflows === true) consume(state, [...sourcePath, "workflows"]);
1275
+ const workflows = typeof value.workflows === "boolean" ? value.workflows : void 0;
1276
+ if (workflows !== void 0) consume(state, [...sourcePath, "workflows"]);
1276
1277
  if (stringValue(value.host)) consume(state, [...sourcePath, "host"]);
1277
1278
  if (stringValue(value.branch)) consume(state, [...sourcePath, "branch"]);
1278
1279
  consumeCredentialObject(value.credentials, [...sourcePath, "credentials"], state);
@@ -1292,7 +1293,8 @@ function githubOutput(value, publishInfo, rawOutput, language, sourcePath, state
1292
1293
  ...optional("host", stringValue(value.host)),
1293
1294
  ...optional("branch", stringValue(value.branch)),
1294
1295
  mode: value.makePr === true || type === "pullRequest" ? "pull-request" : type === "push" ? "push" : "release",
1295
- ...optional("reviewers", reviewers)
1296
+ ...optional("reviewers", reviewers),
1297
+ ...workflows === false ? { workflows } : {}
1296
1298
  },
1297
1299
  ...publication ? { publish: publication.publish } : {}
1298
1300
  },
@@ -2414,7 +2416,10 @@ var githubOutputSchema = z.strictObject({
2414
2416
  mode: z.enum(["release", "pull-request", "push", "commit", "commit-and-release"]).optional().describe("How generated changes are delivered to the repository."),
2415
2417
  reviewers: reviewersSchema.optional().describe("Reviewers requested for generated pull requests."),
2416
2418
  credentials: githubCredentialsSchema.optional().describe("Credentials used to authenticate GitHub delivery."),
2417
- privateRepository: z.boolean().optional().describe("Whether the destination repository is private.")
2419
+ privateRepository: z.boolean().optional().describe("Whether the destination repository is private."),
2420
+ workflows: z.boolean().optional().describe(
2421
+ "Whether generated .github/workflows files are delivered. Defaults to true. When false, newly generated workflow files are skipped and existing ones in the repository are left untouched."
2422
+ )
2418
2423
  });
2419
2424
  var filesOutputSchema = z.strictObject({
2420
2425
  delivery: z.literal("files").describe("Writes the generated SDK to a directory."),
@@ -4548,6 +4553,10 @@ var githubOutputSchema2 = z.strictObject({
4548
4553
  /** Raw GitHub credentials. These values can be sensitive and must be handled as secrets. */
4549
4554
  credentials: registryCredentialsSchema.optional().describe("Resolved GitHub credentials."),
4550
4555
  privateRepository: z.boolean().optional().describe("Whether the destination repository is private."),
4556
+ /** Whether generated `.github/workflows` files are delivered. If omitted, they are (true). */
4557
+ workflows: z.boolean().optional().describe(
4558
+ "Whether generated .github/workflows files are delivered. Defaults to true. When false, newly generated workflow files are skipped and existing ones in the repository are left untouched."
4559
+ ),
4551
4560
  /** GitHub license block scoped to repository delivery. */
4552
4561
  license: githubLicenseSchema.optional().describe("License configuration for the destination repository."),
4553
4562
  /** GitHub replay control. If omitted, the external publisher applies its default behavior. */