@webpieces/pr-gate 0.4.827 → 0.4.829

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.
Files changed (37) hide show
  1. package/package.json +4 -3
  2. package/src/dashboard/dashboard.js +8 -5
  3. package/src/dashboard/dashboard.js.map +1 -1
  4. package/src/index.js +1 -1
  5. package/src/index.js.map +1 -1
  6. package/src/scripts/commands/finish-upsert-pr-command.d.ts +4 -7
  7. package/src/scripts/commands/finish-upsert-pr-command.js +11 -29
  8. package/src/scripts/commands/finish-upsert-pr-command.js.map +1 -1
  9. package/src/scripts/commands/review-upsert-pr-command.d.ts +4 -5
  10. package/src/scripts/commands/review-upsert-pr-command.js +7 -13
  11. package/src/scripts/commands/review-upsert-pr-command.js.map +1 -1
  12. package/src/scripts/commands/start-upsert-pr-command.d.ts +4 -6
  13. package/src/scripts/commands/start-upsert-pr-command.js +12 -24
  14. package/src/scripts/commands/start-upsert-pr-command.js.map +1 -1
  15. package/src/scripts/commands/upsert-hotfix-pr-command.d.ts +73 -0
  16. package/src/scripts/commands/upsert-hotfix-pr-command.js +277 -0
  17. package/src/scripts/commands/upsert-hotfix-pr-command.js.map +1 -0
  18. package/src/scripts/pr-gate-app.d.ts +8 -1
  19. package/src/scripts/pr-gate-app.js +13 -1
  20. package/src/scripts/pr-gate-app.js.map +1 -1
  21. package/src/scripts/workflow/hotfix-pr-publisher.d.ts +21 -0
  22. package/src/scripts/workflow/hotfix-pr-publisher.js +46 -0
  23. package/src/scripts/workflow/hotfix-pr-publisher.js.map +1 -0
  24. package/src/scripts/workflow/hotfix-redirect.d.ts +20 -0
  25. package/src/scripts/workflow/hotfix-redirect.js +53 -0
  26. package/src/scripts/workflow/hotfix-redirect.js.map +1 -0
  27. package/src/scripts/workflow/push-dev-state.js +1 -0
  28. package/src/scripts/workflow/push-dev-state.js.map +1 -1
  29. package/src/scripts/wp-upsert-hotfix-pr.d.ts +2 -0
  30. package/src/scripts/wp-upsert-hotfix-pr.js +17 -0
  31. package/src/scripts/wp-upsert-hotfix-pr.js.map +1 -0
  32. package/src/scripts/workflow/hotfix-finish-preparer.d.ts +0 -38
  33. package/src/scripts/workflow/hotfix-finish-preparer.js +0 -114
  34. package/src/scripts/workflow/hotfix-finish-preparer.js.map +0 -1
  35. package/src/scripts/workflow/hotfix-instructions.d.ts +0 -5
  36. package/src/scripts/workflow/hotfix-instructions.js +0 -46
  37. package/src/scripts/workflow/hotfix-instructions.js.map +0 -1
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HotfixInstructions = void 0;
4
- const tslib_1 = require("tslib");
5
- const rules_config_1 = require("@webpieces/rules-config");
6
- const inversify_1 = require("inversify");
7
- const SEP = '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n';
8
- const PRE_FINISH_NOTICE = 'Compilation and tests will run during pnpm wp-finish-upsert-pr; they have not run yet.';
9
- /** Pure instructions for the two hotfix handoffs, kept identical across stages ① and ②. */
10
- let HotfixInstructions = class HotfixInstructions {
11
- afterStart(summaryPath, context) {
12
- return ('\n' +
13
- SEP +
14
- '⚠️ HOT FIX ⚠️ — reviews and policy checks are bypassed\n' +
15
- SEP +
16
- '\n' +
17
- PRE_FINISH_NOTICE +
18
- '\n\n' +
19
- context +
20
- '\n' +
21
- (0, rules_config_1.summaryJsonSchemaHint)(summaryPath) +
22
- '\n\n' +
23
- 'No reviewer agent runs for this /hotfix/ branch. After writing that meaningful summary, run:\n' +
24
- ' pnpm wp-finish-upsert-pr\n\n');
25
- }
26
- reviewNoOp(summaryPath) {
27
- return ('\n' +
28
- SEP +
29
- '⚠️ HOT FIX ⚠️\n' +
30
- SEP +
31
- '\n' +
32
- PRE_FINISH_NOTICE +
33
- '\n\n' +
34
- 'Required and optional reviews are bypassed for this /hotfix/ branch. No reviewer agent ran.\n' +
35
- 'No build, checklist scan,\n' +
36
- 'diff materialization, reviewer briefing, or review receipt was produced by this command.\n\n' +
37
- (0, rules_config_1.summaryJsonSchemaHint)(summaryPath) +
38
- '\n\n' +
39
- 'Write the required summary, then run: pnpm wp-finish-upsert-pr\n\n');
40
- }
41
- };
42
- exports.HotfixInstructions = HotfixInstructions;
43
- exports.HotfixInstructions = HotfixInstructions = tslib_1.__decorate([
44
- (0, inversify_1.injectable)(inversify_1.bindingScopeValues.Singleton)
45
- ], HotfixInstructions);
46
- //# sourceMappingURL=hotfix-instructions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hotfix-instructions.js","sourceRoot":"","sources":["../../../../../../../packages/tooling/pr-gate/src/scripts/workflow/hotfix-instructions.ts"],"names":[],"mappings":";;;;AAAA,0DAAgE;AAChE,yCAA2D;AAE3D,MAAM,GAAG,GAAG,0DAA0D,CAAC;AACvE,MAAM,iBAAiB,GAAG,wFAAwF,CAAC;AAEnH,2FAA2F;AAEpF,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC3B,UAAU,CAAC,WAAmB,EAAE,OAAe;QAC3C,OAAO,CACH,IAAI;YACJ,GAAG;YACH,0DAA0D;YAC1D,GAAG;YACH,IAAI;YACJ,iBAAiB;YACjB,MAAM;YACN,OAAO;YACP,IAAI;YACJ,IAAA,oCAAqB,EAAC,WAAW,CAAC;YAClC,MAAM;YACN,gGAAgG;YAChG,gCAAgC,CACnC,CAAC;IACN,CAAC;IAED,UAAU,CAAC,WAAmB;QAC1B,OAAO,CACH,IAAI;YACJ,GAAG;YACH,iBAAiB;YACjB,GAAG;YACH,IAAI;YACJ,iBAAiB;YACjB,MAAM;YACN,+FAA+F;YAC/F,6BAA6B;YAC7B,8FAA8F;YAC9F,IAAA,oCAAqB,EAAC,WAAW,CAAC;YAClC,MAAM;YACN,oEAAoE,CACvE,CAAC;IACN,CAAC;CACJ,CAAA;AApCY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,sBAAU,EAAC,8BAAkB,CAAC,SAAS,CAAC;GAC5B,kBAAkB,CAoC9B","sourcesContent":["import { summaryJsonSchemaHint } from '@webpieces/rules-config';\nimport { injectable, bindingScopeValues } from 'inversify';\n\nconst SEP = '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\\n';\nconst PRE_FINISH_NOTICE = 'Compilation and tests will run during pnpm wp-finish-upsert-pr; they have not run yet.';\n\n/** Pure instructions for the two hotfix handoffs, kept identical across stages ① and ②. */\n@injectable(bindingScopeValues.Singleton)\nexport class HotfixInstructions {\n afterStart(summaryPath: string, context: string): string {\n return (\n '\\n' +\n SEP +\n '⚠️ HOT FIX ⚠️ — reviews and policy checks are bypassed\\n' +\n SEP +\n '\\n' +\n PRE_FINISH_NOTICE +\n '\\n\\n' +\n context +\n '\\n' +\n summaryJsonSchemaHint(summaryPath) +\n '\\n\\n' +\n 'No reviewer agent runs for this /hotfix/ branch. After writing that meaningful summary, run:\\n' +\n ' pnpm wp-finish-upsert-pr\\n\\n'\n );\n }\n\n reviewNoOp(summaryPath: string): string {\n return (\n '\\n' +\n SEP +\n '⚠️ HOT FIX ⚠️\\n' +\n SEP +\n '\\n' +\n PRE_FINISH_NOTICE +\n '\\n\\n' +\n 'Required and optional reviews are bypassed for this /hotfix/ branch. No reviewer agent ran.\\n' +\n 'No build, checklist scan,\\n' +\n 'diff materialization, reviewer briefing, or review receipt was produced by this command.\\n\\n' +\n summaryJsonSchemaHint(summaryPath) +\n '\\n\\n' +\n 'Write the required summary, then run: pnpm wp-finish-upsert-pr\\n\\n'\n );\n }\n}\n"]}