@rmartz/pr-policy 1.7.0 → 1.7.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/README.md +11 -11
- package/dist/bin/pr-policy.js +1 -1
- package/dist/{chunk-JJ5AKEQ3.js → chunk-SWWJ3U3V.js} +11 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,17 +12,17 @@ new required-status name.
|
|
|
12
12
|
|
|
13
13
|
## Checks
|
|
14
14
|
|
|
15
|
-
| Check | Blocks when
|
|
16
|
-
| --------------------------------------------------------------------- |
|
|
17
|
-
| **Blocking labels** ([docs](docs/checks/merge-block.md)) | The PR carries `do not merge`, `dnm`, `blocked`, or `escalation needed` (shows as pending).
|
|
18
|
-
| **CI-change classification** ([docs](docs/checks/ci-change.md)) | pr-lifecycle's `pr-lifecycle/sign-off` status asks for a CI sign-off (or, before a repo cuts over, a `.github/workflows/**` change loosens CI), and no human has applied `CI change approved` (shows as pending).
|
|
19
|
-
| **Base branch** ([docs](docs/checks/base-branch.md)) | The PR targets a branch other than the default and it isn't a non-epic PR on an open epic's branch. A stacked PR waits for its base PR (shows as pending); a base no open PR heads blocks.
|
|
20
|
-
| **Title-type rules** ([docs](docs/checks/title.md)) | The squash title isn't a valid Conventional Commit, puts `!` on a non-functional type, disagrees with the `breaking change` label, types a linter/formatter bump as a non-release, non-`ci` type, or changes paths its type rules out (`docs`, `test`, `refactor`, `ci`).
|
|
21
|
-
| **UAT sign-off** ([docs](docs/checks/uat.md)) | pr-lifecycle's sign-off status says the head needs UAT (or, before a repo cuts over, the PR isn't docs, tests, CI, dependency-only, or repo metadata), or the status can't be trusted, and no trusted user has applied `no UAT needed`, or `UAT passed` (or `tested`) since the last push (shows as pending). |
|
|
22
|
-
| **UAT label presence** ([docs](docs/checks/uat-label.md)), opt-in | `require-uat-label` is on and the PR carries none of `no UAT needed`, `UAT pending`, `UAT ready`, `UAT passed` (shows as pending).
|
|
23
|
-
| **Dependabot claim verification** ([docs](docs/checks/dependabot.md)) | A Dependabot PR touches a non-dependency path, changes a dependency its description doesn't claim, pins a version other than the claimed one, or edits anything Dependabot never edits (a `package.json` script, a workflow step).
|
|
24
|
-
| Domain labels (backlog) | Never blocks. Additive path-glob → domain-label map.
|
|
25
|
-
| Milestone inheritance (backlog) | Never blocks. Issue → PR milestone.
|
|
15
|
+
| Check | Blocks when |
|
|
16
|
+
| --------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
17
|
+
| **Blocking labels** ([docs](docs/checks/merge-block.md)) | The PR carries `do not merge`, `dnm`, `blocked`, or `escalation needed` (shows as pending). |
|
|
18
|
+
| **CI-change classification** ([docs](docs/checks/ci-change.md)) | pr-lifecycle's `pr-lifecycle/sign-off` status asks for a CI sign-off (or, before a repo cuts over, a `.github/workflows/**` change loosens CI), and no human has applied `CI change approved` (shows as pending). |
|
|
19
|
+
| **Base branch** ([docs](docs/checks/base-branch.md)) | The PR targets a branch other than the default and it isn't a non-epic PR on an open epic's branch. A stacked PR waits for its base PR (shows as pending); a base no open PR heads blocks. |
|
|
20
|
+
| **Title-type rules** ([docs](docs/checks/title.md)) | The squash title isn't a valid Conventional Commit, puts `!` on a non-functional type, disagrees with the `breaking change` label, types a linter/formatter bump as a non-release, non-`ci` type, or changes paths its type rules out (`docs`, `test`, `refactor`, `ci`). |
|
|
21
|
+
| **UAT sign-off** ([docs](docs/checks/uat.md)) | pr-lifecycle's sign-off status says the head needs UAT (or, before a repo cuts over, the PR isn't docs, tests, CI, repo tooling, dependency-only, or repo metadata), or the status can't be trusted, and no trusted user has applied `no UAT needed`, or `UAT passed` (or `tested`) since the last push (shows as pending). |
|
|
22
|
+
| **UAT label presence** ([docs](docs/checks/uat-label.md)), opt-in | `require-uat-label` is on and the PR carries none of `no UAT needed`, `UAT pending`, `UAT ready`, `UAT passed` (shows as pending). |
|
|
23
|
+
| **Dependabot claim verification** ([docs](docs/checks/dependabot.md)) | A Dependabot PR touches a non-dependency path, changes a dependency its description doesn't claim, pins a version other than the claimed one, or edits anything Dependabot never edits (a `package.json` script, a workflow step). |
|
|
24
|
+
| Domain labels (backlog) | Never blocks. Additive path-glob → domain-label map. |
|
|
25
|
+
| Milestone inheritance (backlog) | Never blocks. Issue → PR milestone. |
|
|
26
26
|
|
|
27
27
|
The design, and why this is separate from `merge-safety` and `pr-lifecycle`, is
|
|
28
28
|
in [docs/decisions.md](docs/decisions.md).
|
package/dist/bin/pr-policy.js
CHANGED
|
@@ -1633,7 +1633,14 @@ var baseBranchCheck = {
|
|
|
1633
1633
|
};
|
|
1634
1634
|
|
|
1635
1635
|
// src/checks/uat/trivial.ts
|
|
1636
|
-
var TRIVIAL_CATEGORIES = [
|
|
1636
|
+
var TRIVIAL_CATEGORIES = [
|
|
1637
|
+
"docs",
|
|
1638
|
+
"tests",
|
|
1639
|
+
"ci",
|
|
1640
|
+
"tooling",
|
|
1641
|
+
"dependencies",
|
|
1642
|
+
"metadata"
|
|
1643
|
+
];
|
|
1637
1644
|
function categoryOf(kind) {
|
|
1638
1645
|
switch (kind) {
|
|
1639
1646
|
case "docs":
|
|
@@ -1641,12 +1648,13 @@ function categoryOf(kind) {
|
|
|
1641
1648
|
case "ci":
|
|
1642
1649
|
case "metadata":
|
|
1643
1650
|
return kind;
|
|
1651
|
+
case "tooling-config":
|
|
1652
|
+
case "repo-script":
|
|
1653
|
+
return "tooling";
|
|
1644
1654
|
case "lockfile":
|
|
1645
1655
|
case "tooling-manifest":
|
|
1646
1656
|
case "runtime-manifest":
|
|
1647
1657
|
return "dependencies";
|
|
1648
|
-
case "tooling-config":
|
|
1649
|
-
case "repo-script":
|
|
1650
1658
|
case void 0:
|
|
1651
1659
|
return void 0;
|
|
1652
1660
|
}
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmartz/pr-policy",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
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",
|