@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 +16 -2
- package/action.yml +2 -2
- package/dist/action.cjs +5 -3
- package/dist/cli.cjs +5 -3
- package/dist/index.cjs +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
# Postman Repo Sync
|
|
1
|
+
# Postman Onboarding: Repo Sync
|
|
2
2
|
|
|
3
|
-
[](https://github.com/postman-cs/postman-repo-sync-action/actions/workflows/ci.yml) [](https://github.com/postman-cs/postman-repo-sync-action/releases) [](https://www.npmjs.com/package/@postman-cse/onboarding-repo-sync) [](LICENSE)
|
|
3
|
+
[](https://github.com/postman-cs/postman-repo-sync-action/actions/workflows/ci.yml) [](https://github.com/postman-cs/postman-repo-sync-action/releases) [](https://www.npmjs.com/package/@postman-cse/onboarding-repo-sync) [](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
|
|
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
|
|
25418
|
-
*
|
|
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
|
|
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
|
|
23521
|
-
*
|
|
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
|
|
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
|
|
25433
|
-
*
|
|
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
|
|
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);
|