@webpieces/pr-gate 0.4.834 → 0.4.836
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/package.json +3 -3
- package/src/dashboard/author-identity.d.ts +1 -1
- package/src/dashboard/author-identity.js +4 -4
- package/src/dashboard/author-identity.js.map +1 -1
- package/src/scripts/commands/write-review-command.d.ts +2 -1
- package/src/scripts/commands/write-review-command.js +2 -5
- package/src/scripts/commands/write-review-command.js.map +1 -1
- package/src/scripts/commands/write-review-fixes-command.d.ts +2 -1
- package/src/scripts/commands/write-review-fixes-command.js +2 -5
- package/src/scripts/commands/write-review-fixes-command.js.map +1 -1
- package/src/scripts/git-finishUpsertPr.js +7 -10
- package/src/scripts/git-finishUpsertPr.js.map +1 -1
- package/src/scripts/pr-gate-cli-app.d.ts +38 -0
- package/src/scripts/pr-gate-cli-app.js +255 -0
- package/src/scripts/pr-gate-cli-app.js.map +1 -0
- package/src/scripts/pr-gate-cli-invocation.d.ts +27 -0
- package/src/scripts/pr-gate-cli-invocation.js +71 -0
- package/src/scripts/pr-gate-cli-invocation.js.map +1 -0
- package/src/scripts/wp-await-checks.js +7 -21
- package/src/scripts/wp-await-checks.js.map +1 -1
- package/src/scripts/wp-await-reviews.js +7 -18
- package/src/scripts/wp-await-reviews.js.map +1 -1
- package/src/scripts/wp-build.js +7 -31
- package/src/scripts/wp-build.js.map +1 -1
- package/src/scripts/wp-check-pr.js +7 -10
- package/src/scripts/wp-check-pr.js.map +1 -1
- package/src/scripts/wp-cleanup.js +7 -18
- package/src/scripts/wp-cleanup.js.map +1 -1
- package/src/scripts/wp-finish-push-dev.js +7 -14
- package/src/scripts/wp-finish-push-dev.js.map +1 -1
- package/src/scripts/wp-finish-update.js +7 -10
- package/src/scripts/wp-finish-update.js.map +1 -1
- package/src/scripts/wp-human-post-pr.js +7 -9
- package/src/scripts/wp-human-post-pr.js.map +1 -1
- package/src/scripts/wp-land-pr.js +7 -21
- package/src/scripts/wp-land-pr.js.map +1 -1
- package/src/scripts/wp-push-dev.js +7 -38
- package/src/scripts/wp-push-dev.js.map +1 -1
- package/src/scripts/wp-review-upsert-pr.js +7 -10
- package/src/scripts/wp-review-upsert-pr.js.map +1 -1
- package/src/scripts/wp-start-update.js +7 -10
- package/src/scripts/wp-start-update.js.map +1 -1
- package/src/scripts/wp-start-upsert-pr.js +7 -10
- package/src/scripts/wp-start-upsert-pr.js.map +1 -1
- package/src/scripts/wp-sync-main.js +7 -10
- package/src/scripts/wp-sync-main.js.map +1 -1
- package/src/scripts/wp-upsert-hotfix-pr.js +7 -11
- package/src/scripts/wp-upsert-hotfix-pr.js.map +1 -1
- package/src/scripts/wp-write-review-fixes.js +7 -10
- package/src/scripts/wp-write-review-fixes.js.map +1 -1
- package/src/scripts/wp-write-review.js +7 -26
- package/src/scripts/wp-write-review.js.map +1 -1
|
@@ -2,43 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
require("reflect-metadata");
|
|
5
|
-
const inversify_1 = require("inversify");
|
|
6
5
|
const rules_config_1 = require("@webpieces/rules-config");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// Composition root: build the container and resolve the app so inversify constructs the whole DAG.
|
|
15
|
-
(0, rules_config_1.runMain)(async () => {
|
|
16
|
-
// autobind self-binds every @injectable(Singleton) tooling class (replaces the buildProviderModule registry scan)
|
|
17
|
-
const container = new inversify_1.Container({ autobind: true });
|
|
18
|
-
// Reject `--help`/bogus flags BEFORE the app touches git — an ignored flag must never start the flow.
|
|
19
|
-
// A mistyped `--forc` that was silently dropped would turn "discard the published resolution" into a
|
|
20
|
-
// refusal, or worse, the reverse.
|
|
21
|
-
const args = container.get(rules_config_1.CliArgs).parse(new rules_config_1.CliUsage('wp-push-dev', 'Publish a DISPOSABLE copy of this branch for the shared dev environment. No PR, no build, and the feature branch is never moved.', [
|
|
22
|
-
new rules_config_1.CliFlag(LIST, 'List the dev copies currently published on origin, then stop.'),
|
|
23
|
-
new rules_config_1.CliFlag(REMOVE, 'Delete this branch\'s dev copy — the rollback. It drops out of the shared dev\n'
|
|
24
|
-
+ ' branch on the next composition run.'),
|
|
25
|
-
new rules_config_1.CliFlag(RESOLVE, 'Compose the OTHER published copies onto yours, so the shared environment can\n'
|
|
26
|
-
+ ' build them together. With a branch name, merge only that one (the CI\n'
|
|
27
|
-
+ ' conflict message names it); bare, merge every other copy in the order\n'
|
|
28
|
-
+ ' CI composes them. Conflicts stop for you to resolve; finish with\n'
|
|
29
|
-
+ ' `pnpm wp-finish-push-dev`.', true),
|
|
30
|
-
new rules_config_1.CliFlag(REBASE_RESOLUTION, 'The copy already holds a conflict resolution and your branch has moved on:\n'
|
|
31
|
-
+ ' REPLAY that resolution on top of your new commits instead of losing it.'),
|
|
32
|
-
new rules_config_1.CliFlag(FORCE, 'DISCARD a conflict resolution published on the copy and overwrite it with your\n'
|
|
33
|
-
+ ' branch as-is. Somebody has to re-resolve the composition afterwards.'),
|
|
34
|
-
]));
|
|
35
|
-
const opts = new push_dev_command_1.PushDevOptions();
|
|
36
|
-
opts.list = args.has(LIST);
|
|
37
|
-
opts.remove = args.has(REMOVE);
|
|
38
|
-
opts.force = args.has(FORCE);
|
|
39
|
-
opts.rebaseResolution = args.has(REBASE_RESOLUTION);
|
|
40
|
-
opts.resolve = args.has(RESOLVE);
|
|
41
|
-
opts.resolveTarget = args.value(RESOLVE);
|
|
42
|
-
await container.get(pr_gate_app_1.PrGateApp).pushDev(opts);
|
|
43
|
-
});
|
|
6
|
+
const inversify_1 = require("inversify");
|
|
7
|
+
const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
|
|
8
|
+
const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
|
|
9
|
+
const container = new inversify_1.Container({ autobind: true });
|
|
10
|
+
(0, rules_config_1.runMain)(() => container
|
|
11
|
+
.get(pr_gate_cli_app_1.PrGateCliApp)
|
|
12
|
+
.run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-push-dev')));
|
|
44
13
|
//# sourceMappingURL=wp-push-dev.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wp-push-dev.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-push-dev.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,yCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"wp-push-dev.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-push-dev.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CACrF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-push-dev')),\n);\n"]}
|
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
require("reflect-metadata");
|
|
5
|
-
const inversify_1 = require("inversify");
|
|
6
5
|
const rules_config_1 = require("@webpieces/rules-config");
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
container.get(
|
|
14
|
-
await container.get(pr_gate_app_1.PrGateApp).reviewUpsertPr();
|
|
15
|
-
});
|
|
6
|
+
const inversify_1 = require("inversify");
|
|
7
|
+
const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
|
|
8
|
+
const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
|
|
9
|
+
const container = new inversify_1.Container({ autobind: true });
|
|
10
|
+
(0, rules_config_1.runMain)(() => container
|
|
11
|
+
.get(pr_gate_cli_app_1.PrGateCliApp)
|
|
12
|
+
.run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-review-upsert-pr')));
|
|
16
13
|
//# sourceMappingURL=wp-review-upsert-pr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wp-review-upsert-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-review-upsert-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,yCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"wp-review-upsert-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-review-upsert-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAC7F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-review-upsert-pr')),\n);\n"]}
|
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
require("reflect-metadata");
|
|
5
|
-
const inversify_1 = require("inversify");
|
|
6
5
|
const rules_config_1 = require("@webpieces/rules-config");
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
container.get(
|
|
14
|
-
await container.get(pr_gate_app_1.PrGateApp).startUpdate();
|
|
15
|
-
});
|
|
6
|
+
const inversify_1 = require("inversify");
|
|
7
|
+
const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
|
|
8
|
+
const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
|
|
9
|
+
const container = new inversify_1.Container({ autobind: true });
|
|
10
|
+
(0, rules_config_1.runMain)(() => container
|
|
11
|
+
.get(pr_gate_cli_app_1.PrGateCliApp)
|
|
12
|
+
.run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-start-update')));
|
|
16
13
|
//# sourceMappingURL=wp-start-update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wp-start-update.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-start-update.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,yCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"wp-start-update.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-start-update.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CACzF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-start-update')),\n);\n"]}
|
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
require("reflect-metadata");
|
|
5
|
-
const inversify_1 = require("inversify");
|
|
6
5
|
const rules_config_1 = require("@webpieces/rules-config");
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
container.get(
|
|
14
|
-
await container.get(pr_gate_app_1.PrGateApp).startUpsertPr();
|
|
15
|
-
});
|
|
6
|
+
const inversify_1 = require("inversify");
|
|
7
|
+
const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
|
|
8
|
+
const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
|
|
9
|
+
const container = new inversify_1.Container({ autobind: true });
|
|
10
|
+
(0, rules_config_1.runMain)(() => container
|
|
11
|
+
.get(pr_gate_cli_app_1.PrGateCliApp)
|
|
12
|
+
.run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-start-upsert-pr')));
|
|
16
13
|
//# sourceMappingURL=wp-start-upsert-pr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wp-start-upsert-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-start-upsert-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,yCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"wp-start-upsert-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-start-upsert-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAC5F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-start-upsert-pr')),\n);\n"]}
|
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
require("reflect-metadata");
|
|
5
|
-
const inversify_1 = require("inversify");
|
|
6
5
|
const rules_config_1 = require("@webpieces/rules-config");
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
container.get(
|
|
14
|
-
await container.get(pr_gate_app_1.PrGateApp).syncMain();
|
|
15
|
-
});
|
|
6
|
+
const inversify_1 = require("inversify");
|
|
7
|
+
const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
|
|
8
|
+
const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
|
|
9
|
+
const container = new inversify_1.Container({ autobind: true });
|
|
10
|
+
(0, rules_config_1.runMain)(() => container
|
|
11
|
+
.get(pr_gate_cli_app_1.PrGateCliApp)
|
|
12
|
+
.run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-sync-main')));
|
|
16
13
|
//# sourceMappingURL=wp-sync-main.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wp-sync-main.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-sync-main.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,yCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"wp-sync-main.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-sync-main.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,CACtF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-sync-main')),\n);\n"]}
|
|
@@ -2,16 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
require("reflect-metadata");
|
|
5
|
-
const inversify_1 = require("inversify");
|
|
6
5
|
const rules_config_1 = require("@webpieces/rules-config");
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
'fast-forward push, then create or update the audit-bannered PR to main. Never auto-merges.'));
|
|
15
|
-
await container.get(pr_gate_app_1.PrGateApp).upsertHotfixPr();
|
|
16
|
-
});
|
|
6
|
+
const inversify_1 = require("inversify");
|
|
7
|
+
const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
|
|
8
|
+
const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
|
|
9
|
+
const container = new inversify_1.Container({ autobind: true });
|
|
10
|
+
(0, rules_config_1.runMain)(() => container
|
|
11
|
+
.get(pr_gate_cli_app_1.PrGateCliApp)
|
|
12
|
+
.run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-upsert-hotfix-pr')));
|
|
17
13
|
//# sourceMappingURL=wp-upsert-hotfix-pr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wp-upsert-hotfix-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-upsert-hotfix-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,yCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"wp-upsert-hotfix-pr.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-upsert-hotfix-pr.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAC7F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-upsert-hotfix-pr')),\n);\n"]}
|
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
require("reflect-metadata");
|
|
5
|
-
const inversify_1 = require("inversify");
|
|
6
5
|
const rules_config_1 = require("@webpieces/rules-config");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
await container.get(pr_gate_app_1.PrGateApp).writeReviewFixes(new write_review_fixes_command_1.WriteReviewFixesOptions(json, process.cwd()));
|
|
15
|
-
});
|
|
6
|
+
const inversify_1 = require("inversify");
|
|
7
|
+
const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
|
|
8
|
+
const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
|
|
9
|
+
const container = new inversify_1.Container({ autobind: true });
|
|
10
|
+
(0, rules_config_1.runMain)(() => container
|
|
11
|
+
.get(pr_gate_cli_app_1.PrGateCliApp)
|
|
12
|
+
.run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-write-review-fixes')));
|
|
16
13
|
//# sourceMappingURL=wp-write-review-fixes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wp-write-review-fixes.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-write-review-fixes.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,yCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"wp-write-review-fixes.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-write-review-fixes.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC,CAC/F,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-write-review-fixes')),\n);\n"]}
|
|
@@ -2,31 +2,12 @@
|
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
require("reflect-metadata");
|
|
5
|
-
const inversify_1 = require("inversify");
|
|
6
5
|
const rules_config_1 = require("@webpieces/rules-config");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// JSON on stdin — because the PreToolUse hook reads that literal command to stamp WHO is running it, and a
|
|
15
|
-
// worktree-isolated subagent's harness only runs commands it can see stay inside the worktree.
|
|
16
|
-
(0, rules_config_1.runMain)(async () => {
|
|
17
|
-
const container = new inversify_1.Container({ autobind: true });
|
|
18
|
-
const args = container.get(rules_config_1.CliArgs).parse(new rules_config_1.CliUsage('wp-write-review', 'Submit ONE reviewer verdict for ONE checklist. Reviewer subagents only — the coordinating agent is refused.', [
|
|
19
|
-
new rules_config_1.CliFlag(CHECKLIST, 'REQUIRED. The checklist id your instructions file names, e.g. --checklist security.', true),
|
|
20
|
-
new rules_config_1.CliFlag(FILE, 'The verdict JSON file. Omit it to pass the JSON on stdin:\n'
|
|
21
|
-
+ " pnpm wp-write-review --checklist <id> <<'EOF' … EOF", true),
|
|
22
|
-
new rules_config_1.CliFlag(CHECK, 'Submit nothing: only say whether this checklist may still be reviewed on this branch. A reviewer\n'
|
|
23
|
-
+ ' runs it FIRST; it refuses once the checklist was reviewed maxReviewerRounds times.'),
|
|
24
|
-
]));
|
|
25
|
-
if (args.has(CHECK)) {
|
|
26
|
-
await container.get(pr_gate_app_1.PrGateApp).checkReviewBudget(new write_review_command_1.ReviewBudgetCheckOptions(args.value(CHECKLIST), process.cwd()));
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
const json = container.get(write_review_command_1.WriteReviewInput).read(args.value(FILE));
|
|
30
|
-
await container.get(pr_gate_app_1.PrGateApp).writeReview(new write_review_command_1.WriteReviewOptions(args.value(CHECKLIST), json, process.cwd()));
|
|
31
|
-
});
|
|
6
|
+
const inversify_1 = require("inversify");
|
|
7
|
+
const pr_gate_cli_app_1 = require("./pr-gate-cli-app");
|
|
8
|
+
const pr_gate_cli_invocation_1 = require("./pr-gate-cli-invocation");
|
|
9
|
+
const container = new inversify_1.Container({ autobind: true });
|
|
10
|
+
(0, rules_config_1.runMain)(() => container
|
|
11
|
+
.get(pr_gate_cli_app_1.PrGateCliApp)
|
|
12
|
+
.run(container.get(pr_gate_cli_invocation_1.PrGateCliInvocationFactory).fromProcess('wp-write-review')));
|
|
32
13
|
//# sourceMappingURL=wp-write-review.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wp-write-review.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-write-review.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,yCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"wp-write-review.js","sourceRoot":"","sources":["../../../../../../packages/tooling/pr-gate/src/scripts/wp-write-review.ts"],"names":[],"mappings":";;;AACA,4BAA0B;AAC1B,0DAAkD;AAClD,yCAAsC;AACtC,uDAAiD;AACjD,qEAAsE;AAEtE,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACpD,IAAA,sBAAO,EACH,GAAkB,EAAE,CAChB,SAAS;KACJ,GAAG,CAAC,8BAAY,CAAC;KACjB,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,mDAA0B,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CACzF,CAAC","sourcesContent":["#!/usr/bin/env node\nimport 'reflect-metadata';\nimport { runMain } from '@webpieces/rules-config';\nimport { Container } from 'inversify';\nimport { PrGateCliApp } from './pr-gate-cli-app';\nimport { PrGateCliInvocationFactory } from './pr-gate-cli-invocation';\n\nconst container = new Container({ autobind: true });\nrunMain(\n (): Promise<void> =>\n container\n .get(PrGateCliApp)\n .run(container.get(PrGateCliInvocationFactory).fromProcess('wp-write-review')),\n);\n"]}
|