@webpieces/rules-config 0.4.479 → 0.4.480

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webpieces/rules-config",
3
- "version": "0.4.479",
3
+ "version": "0.4.480",
4
4
  "description": "Shared webpieces.config.json loader. Single source of truth for validation rule configuration consumed by @webpieces/ai-hook-rules, @webpieces/code-rules, and @webpieces/nx-webpieces-rules.",
5
5
  "type": "commonjs",
6
6
  "main": "./src/index.js",
@@ -31,12 +31,15 @@
31
31
  name: Webpieces PR Gate
32
32
  on:
33
33
  pull_request:
34
- # `edited` is LOAD-BEARING, not a fallback do NOT remove it. wp-start-upsert-pr pushes too, and that
35
- # push fires `synchronize` while the PR body still carries the PREVIOUS run's token, so the check goes
36
- # red. By the time wp-finish-upsert-pr runs, HEAD usually has not moved, so its push is a no-op that
37
- # fires NO event — the only thing that re-triggers this job and clears the red is the `edited` event
38
- # from finish writing the new body. Drop `edited` and every iteration leaves a stale red.
39
- # `synchronize` is equally required: it is what catches an unhooked teammate pushing over a gated PR.
34
+ # `synchronize` is the primary trigger and catches an unhooked teammate pushing over a gated PR. The
35
+ # gated flow pushes exactly ONCE per cycle (from wp-finish-upsert-pr, after the PR body is written),
36
+ # so the synchronize run always reads the correct token.
37
+ #
38
+ # `edited` is the BODY-TAMPER guard: the token lives in the PR body, so an edit that strips it must
39
+ # re-run this check rather than leave a stale green. Keep it. Note it fires on wp-finish's body write,
40
+ # a beat BEFORE that push — so its run can briefly resolve the OLD head sha and go red. Harmless: that
41
+ # red is keyed to a sha that is no longer the PR head, and branch protection evaluates the current
42
+ # head, where the synchronize run lands green.
40
43
  types: [opened, edited, synchronize, reopened]
41
44
  permissions:
42
45
  contents: read