@rmartz/merge-safety 0.11.0 → 0.12.0
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 +2 -5
- package/dist/bin/merge-safety.d.ts +2 -2
- package/dist/bin/merge-safety.js +1 -1
- package/dist/index.d.ts +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,11 +15,8 @@ is:
|
|
|
15
15
|
check named exactly `merge-safety`; see
|
|
16
16
|
[docs/check-run-contract.md](docs/check-run-contract.md).
|
|
17
17
|
|
|
18
|
-
> **Status: released.**
|
|
19
|
-
> implementation
|
|
20
|
-
> ready to adopt. It was split out of `@rmartz/pr-review` per
|
|
21
|
-
> [ai-tools#247](https://github.com/rmartz/ai-tools/issues/247); see
|
|
22
|
-
> [docs/migration.md](docs/migration.md) for the record of how it was extracted.
|
|
18
|
+
> **Status: released.** The package ships the full `evaluate` / `invalidate`
|
|
19
|
+
> implementation as the `merge-safety` CLI and is ready to adopt.
|
|
23
20
|
|
|
24
21
|
## Using it in a consuming repo
|
|
25
22
|
|
|
@@ -51,8 +51,8 @@ interface Args {
|
|
|
51
51
|
baseRef: string;
|
|
52
52
|
/**
|
|
53
53
|
* The consumer's caller workflow filename that `invalidate` re-dispatches per PR
|
|
54
|
-
* (
|
|
55
|
-
*
|
|
54
|
+
* (a reusable workflow's fan-out must target the *caller* file, not this
|
|
55
|
+
* reusable file). Defaults to the conventional name.
|
|
56
56
|
*/
|
|
57
57
|
workflow: string;
|
|
58
58
|
cwd?: string;
|
package/dist/bin/merge-safety.js
CHANGED
|
@@ -641,7 +641,7 @@ async function gatherMergeSafetyFacts(meta, { baseRef = "origin/main", git, base
|
|
|
641
641
|
var DEFAULT_CALLER_WORKFLOW = "merge-safety.yml";
|
|
642
642
|
function usage() {
|
|
643
643
|
console.error(
|
|
644
|
-
"usage:
|
|
644
|
+
"usage: merge-safety evaluate --pr <n> [--json] [--repo <o/r>] [--base <ref>] [--cwd <path>]\n merge-safety invalidate [--base-branch <name>] [--workflow <file>] [--exclude <n>]\n [--repo <o/r>] [--cwd <path>]"
|
|
645
645
|
);
|
|
646
646
|
process.exit(2);
|
|
647
647
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Encodes the package's stable public contract: the `merge-safety` check-run
|
|
5
5
|
* name and the CLI command surface. The evaluate/invalidate implementation
|
|
6
|
-
* (`merge-safety.ts` + `merge-safety-facts.ts` and the `
|
|
6
|
+
* (`merge-safety.ts` + `merge-safety-facts.ts` and the `merge-safety` bin)
|
|
7
7
|
* lives alongside it; this module is intentionally the narrow, frozen surface
|
|
8
8
|
* consumers and the reusable workflow depend on.
|
|
9
9
|
*/
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
declare const MERGE_SAFETY_CHECK_NAME = "merge-safety";
|
|
21
21
|
/**
|
|
22
|
-
* The two operations the `
|
|
22
|
+
* The two operations the `merge-safety` CLI dispatches:
|
|
23
23
|
* - `evaluate` — gather base-currency + breaking-change + conflict facts for one
|
|
24
24
|
* PR, post the `merge-safety` check-run, and reconcile the update-required /
|
|
25
25
|
* merge-conflict labels.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmartz/merge-safety",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "The pre-auto-merge safety verdict for a PR (base-currency, breaking-change, and conflict facts), posted as the `merge-safety` check-run and distributed via a reusable workflow kept current by Dependabot.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"bin": {
|
|
29
|
-
"
|
|
29
|
+
"merge-safety": "./dist/bin/merge-safety.js"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"dist"
|