@postman-cse/onboarding-repo-sync 1.0.2 → 1.0.3

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/README.md CHANGED
@@ -1,9 +1,11 @@
1
- # Postman Repo Sync
1
+ # Postman Onboarding: Repo Sync
2
2
 
3
- [![CI](https://github.com/postman-cs/postman-repo-sync-action/actions/workflows/ci.yml/badge.svg)](https://github.com/postman-cs/postman-repo-sync-action/actions/workflows/ci.yml) [![Release](https://img.shields.io/github/v/release/postman-cs/postman-repo-sync-action?sort=semver)](https://github.com/postman-cs/postman-repo-sync-action/releases) [![npm](https://img.shields.io/npm/v/%40postman-cse%2Fonboarding-repo-sync)](https://www.npmjs.com/package/@postman-cse/onboarding-repo-sync) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/postman-cs/postman-repo-sync-action/badge)](https://scorecard.dev/viewer/?uri=github.com/postman-cs/postman-repo-sync-action)
3
+ [![CI](https://github.com/postman-cs/postman-repo-sync-action/actions/workflows/ci.yml/badge.svg)](https://github.com/postman-cs/postman-repo-sync-action/actions/workflows/ci.yml) [![Release](https://img.shields.io/github/v/release/postman-cs/postman-repo-sync-action?sort=semver)](https://github.com/postman-cs/postman-repo-sync-action/releases) [![npm](https://img.shields.io/npm/v/%40postman-cse%2Fonboarding-repo-sync)](https://www.npmjs.com/package/@postman-cse/onboarding-repo-sync) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
4
4
 
5
5
  Exports Postman collections and environments into your repository and wires CI, mocks, and monitors around them.
6
6
 
7
+ Part of the [Postman API Onboarding suite](https://github.com/postman-cs/postman-api-onboarding-action).
8
+
7
9
  ## Usage
8
10
 
9
11
  ```yaml
@@ -202,6 +204,18 @@ Deeper reference:
202
204
 
203
205
  ## Resources
204
206
 
207
+ ### The suite
208
+
209
+ | Action | Role |
210
+ | --- | --- |
211
+ | [Postman API Onboarding](https://github.com/postman-cs/postman-api-onboarding-action) | Entry point: chains workspace bootstrap, repo sync, and optional Insights linking |
212
+ | [Postman Onboarding: Service Token](https://github.com/postman-cs/postman-resolve-service-token-action) | Mints the service-account access token and team ID |
213
+ | [Postman Onboarding: AWS Spec Discovery](https://github.com/postman-cs/postman-aws-spec-discovery-action) | Discovers and exports API specs from AWS services |
214
+ | [Postman Onboarding: Workspace Bootstrap](https://github.com/postman-cs/postman-bootstrap-action) | Creates the workspace, uploads the spec, generates collections |
215
+ | [Postman Onboarding: Smoke Flow](https://github.com/postman-cs/postman-smoke-flow-action) | Applies a curated flow.yaml to the Smoke collection |
216
+ | [Postman Onboarding: Repo Sync](https://github.com/postman-cs/postman-repo-sync-action) | Exports artifacts into the repo and wires CI, mocks, and monitors |
217
+ | [Postman Onboarding: Insights Linking](https://github.com/postman-cs/postman-insights-onboarding-action) | Links Insights discovered services to the workspace |
218
+
205
219
  - [postman-resolve-service-token-action](https://github.com/postman-cs/postman-resolve-service-token-action): mints a service-account access token and team ID.
206
220
  - [postman-api-onboarding-action](https://github.com/postman-cs/postman-api-onboarding-action): composite action that orchestrates the onboarding pipeline.
207
221
  - [postman-bootstrap-action](https://github.com/postman-cs/postman-bootstrap-action): workspace provisioning, spec upload, and collection generation.
package/action.yml CHANGED
@@ -1,5 +1,5 @@
1
- name: Postman Repo Sync
2
- description: Export Postman collections and environments into your repo and wire CI, mocks, and monitors around them.
1
+ name: 'Postman Onboarding: Repo Sync'
2
+ description: Export Postman collections and environments into your repo with CI wiring. Part of the Postman API Onboarding suite.
3
3
  author: Postman
4
4
  branding:
5
5
  icon: refresh-cw
package/dist/action.cjs CHANGED
@@ -25414,8 +25414,10 @@ var PostmanAssetsClient = class {
25414
25414
  * Monitor and mock creation reference a collection that may have been
25415
25415
  * created moments earlier; the Postman backend is eventually consistent
25416
25416
  * and can reject the reference with a 400 "Unable to load collection"
25417
- * until the collection becomes visible. Retry that specific 400 plus
25418
- * generic transient statuses with backoff.
25417
+ * until the collection becomes visible. Retry only that specific 400 and
25418
+ * 429 throttling: both guarantee nothing was created. A 5xx on these
25419
+ * non-idempotent creates is ambiguous (the asset may exist server-side),
25420
+ * so it is not retried to avoid duplicate mocks and monitors.
25419
25421
  */
25420
25422
  async requestWithCollectionRetry(path8, init) {
25421
25423
  return retry(() => this.request(path8, init), {
@@ -25428,7 +25430,7 @@ var PostmanAssetsClient = class {
25428
25430
  if (!(error2 instanceof HttpError)) {
25429
25431
  return false;
25430
25432
  }
25431
- if (error2.status >= 500 || error2.status === 429) {
25433
+ if (error2.status === 429) {
25432
25434
  return true;
25433
25435
  }
25434
25436
  return error2.status === 400 && /unable to load collection/i.test(error2.responseBody);
package/dist/cli.cjs CHANGED
@@ -23517,8 +23517,10 @@ var PostmanAssetsClient = class {
23517
23517
  * Monitor and mock creation reference a collection that may have been
23518
23518
  * created moments earlier; the Postman backend is eventually consistent
23519
23519
  * and can reject the reference with a 400 "Unable to load collection"
23520
- * until the collection becomes visible. Retry that specific 400 plus
23521
- * generic transient statuses with backoff.
23520
+ * until the collection becomes visible. Retry only that specific 400 and
23521
+ * 429 throttling: both guarantee nothing was created. A 5xx on these
23522
+ * non-idempotent creates is ambiguous (the asset may exist server-side),
23523
+ * so it is not retried to avoid duplicate mocks and monitors.
23522
23524
  */
23523
23525
  async requestWithCollectionRetry(path4, init) {
23524
23526
  return retry(() => this.request(path4, init), {
@@ -23531,7 +23533,7 @@ var PostmanAssetsClient = class {
23531
23533
  if (!(error instanceof HttpError)) {
23532
23534
  return false;
23533
23535
  }
23534
- if (error.status >= 500 || error.status === 429) {
23536
+ if (error.status === 429) {
23535
23537
  return true;
23536
23538
  }
23537
23539
  return error.status === 400 && /unable to load collection/i.test(error.responseBody);
package/dist/index.cjs CHANGED
@@ -25429,8 +25429,10 @@ var PostmanAssetsClient = class {
25429
25429
  * Monitor and mock creation reference a collection that may have been
25430
25430
  * created moments earlier; the Postman backend is eventually consistent
25431
25431
  * and can reject the reference with a 400 "Unable to load collection"
25432
- * until the collection becomes visible. Retry that specific 400 plus
25433
- * generic transient statuses with backoff.
25432
+ * until the collection becomes visible. Retry only that specific 400 and
25433
+ * 429 throttling: both guarantee nothing was created. A 5xx on these
25434
+ * non-idempotent creates is ambiguous (the asset may exist server-side),
25435
+ * so it is not retried to avoid duplicate mocks and monitors.
25434
25436
  */
25435
25437
  async requestWithCollectionRetry(path8, init) {
25436
25438
  return retry(() => this.request(path8, init), {
@@ -25443,7 +25445,7 @@ var PostmanAssetsClient = class {
25443
25445
  if (!(error2 instanceof HttpError)) {
25444
25446
  return false;
25445
25447
  }
25446
- if (error2.status >= 500 || error2.status === 429) {
25448
+ if (error2.status === 429) {
25447
25449
  return true;
25448
25450
  }
25449
25451
  return error2.status === 400 && /unable to load collection/i.test(error2.responseBody);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postman-cse/onboarding-repo-sync",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Public customer preview Postman repo sync GitHub Action.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",