@wirecat/cli-base 0.45.0 → 0.45.1
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/docs/standards/ci.md +8 -4
- package/package.json +1 -1
package/docs/standards/ci.md
CHANGED
|
@@ -65,7 +65,9 @@ cli-testing, cli-docs, plus community itself.
|
|
|
65
65
|
### WC-CI-5 · Run the full Linux validation on every pull request, and keep platform suites out
|
|
66
66
|
|
|
67
67
|
- **Why:** a pull request that lowers coverage or breaks a contract must fail before it merges; once on `main` it
|
|
68
|
-
blocks every other branch and the next release. It costs
|
|
68
|
+
blocks every other branch and the next release. It costs 2–3 minutes per pull request in the CLIs (measured: wa
|
|
69
|
+
2.9, tg 2.2, max 3.0) and about 8 in cli-core, where `test:coverage` alone takes 5m46s; splitting that job into
|
|
70
|
+
shards would need a new `node-ci.yml` input.
|
|
69
71
|
- **Enforced by:** `pr.yml:validation`.
|
|
70
72
|
- **Example:** `pr.yml` runs on `pull_request` and calls the repository's own `ci.yml`, the same full validation as
|
|
71
73
|
`main` (WC-CI-7): lint, typecheck, `test:coverage` with the coverage floor, build, the contracts, the test matrix,
|
|
@@ -93,8 +95,8 @@ cli-testing, cli-docs, plus community itself.
|
|
|
93
95
|
cli-base `macos.yml` for the path code. cli-docs and community run `security-pr.yml`, a new-commit secret scan;
|
|
94
96
|
cli-docs validates its site before each deployment instead, and community has no build. Third-party security apps
|
|
95
97
|
may post their own checks.
|
|
96
|
-
- **Applies to:** the CLIs, cli-base, cli-core and cli-testing. cli-base
|
|
97
|
-
`
|
|
98
|
+
- **Applies to:** the CLIs, cli-base, cli-core and cli-testing. cli-base, whatsapp-cli, tg-cli, max-cli and cli-core
|
|
99
|
+
have `pr.yml`; cli-memo, drive-cli, zoom-cli and cli-testing do not have it yet. **Since:**
|
|
98
100
|
cli-base 0.41.0 (pull request validation since cli-base 0.44.6). **Rulings:** none.
|
|
99
101
|
|
|
100
102
|
### WC-CI-6 · Run the changelog guard on every pull request
|
|
@@ -164,7 +166,9 @@ cli-testing, cli-docs, plus community itself.
|
|
|
164
166
|
### WC-CI-12 · Merge to `main` only through a pull request whose checks all passed
|
|
165
167
|
|
|
166
168
|
- **Why:** a red merge breaks `main` for every parallel branch, and an admin merge skips the only gate there is.
|
|
167
|
-
- **Enforced by:**
|
|
169
|
+
- **Enforced by:** `whatsapp-cli: main ruleset required checks` · `cli-core: main ruleset required checks`, where each
|
|
170
|
+
repository's main ruleset lists the PR validation jobs as required checks; review elsewhere until each repository
|
|
171
|
+
adds them.
|
|
168
172
|
- **Example:** `gh pr checks <number>` shows every line as pass before `gh pr merge`. Never merge with `--admin`. A
|
|
169
173
|
release changes `main` the same way
|
|
170
174
|
([WC-REL-2](releases.md#wc-rel-2--main-changes-only-through-a-pull-request-also-during-a-release)).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-base",
|
|
3
|
-
"version": "0.45.
|
|
3
|
+
"version": "0.45.1",
|
|
4
4
|
"description": "The parts every command line tool needs: output modes, terminal rendering, error model, exit codes, credentials, clocks",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Viacheslav Ptsarev",
|