@rmartz/pr-policy 0.12.0 → 0.13.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 +5 -5
- package/dist/bin/pr-policy.js +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -34,13 +34,13 @@ is in its [consumer guide](https://github.com/rmartz/pr-policy-action/blob/main/
|
|
|
34
34
|
|
|
35
35
|
## Library and CLI
|
|
36
36
|
|
|
37
|
-
Every check is importable. The `
|
|
37
|
+
Every check is importable. The `pr-policy` CLI is a thin wrapper around them:
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
pr-policy evaluate --pr 12 --repo rmartz/pr-policy # post the check-run, status + labels
|
|
41
|
+
pr-policy evaluate --pr 12 --repo rmartz/pr-policy --json # evaluate only, change nothing
|
|
42
|
+
pr-policy evaluate --facts pr.json # offline, from a JSON facts file
|
|
43
|
+
pr-policy evaluate --pr 12 --repo rmartz/pr-policy --skip-uat # for a repo with no UAT
|
|
44
44
|
```
|
|
45
45
|
|
|
46
46
|
## Documentation
|
package/dist/bin/pr-policy.js
CHANGED
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
import { readFile } from "fs/promises";
|
|
14
14
|
import { parseArgs } from "util";
|
|
15
15
|
var USAGE = `Usage:
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
pr-policy evaluate --pr <n> [--repo <owner/repo>] [--json] [--skip-uat]
|
|
17
|
+
pr-policy evaluate --facts <path|-> [--skip-uat]
|
|
18
18
|
|
|
19
19
|
--pr Evaluate a live PR, post the pr-policy check-run and commit status on
|
|
20
20
|
its head, and apply the label edits the checks planned. --json
|
package/dist/index.d.ts
CHANGED
|
@@ -56,8 +56,8 @@ interface PullRequestBase {
|
|
|
56
56
|
/**
|
|
57
57
|
* The facts about a pull request that policy checks judge. Every field is a
|
|
58
58
|
* property of the PR's current state — its content and the labels on it, never
|
|
59
|
-
* its review history, which belongs to the separate lifecycle reconciler
|
|
60
|
-
*
|
|
59
|
+
* its review history, which belongs to the separate lifecycle reconciler in
|
|
60
|
+
* `rmartz/pr-lifecycle`.
|
|
61
61
|
*/
|
|
62
62
|
interface PullRequestFacts {
|
|
63
63
|
title: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmartz/pr-policy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Read-only PR content classifiers — CI-change classification, title-type rules, and more — reported as one blocking pr-policy check-run. Distributed as a pinned Action kept current by Dependabot.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pr-policy",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"bin": {
|
|
29
|
-
"
|
|
29
|
+
"pr-policy": "./dist/bin/pr-policy.js"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"dist"
|