@rmartz/pr-policy 0.13.0 → 0.14.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/dist/bin/pr-policy.js
CHANGED
|
@@ -897,7 +897,7 @@ function substantiveWorkflowChanges(changes) {
|
|
|
897
897
|
|
|
898
898
|
// src/checks/test-paths.ts
|
|
899
899
|
var TEST_DIRS = /* @__PURE__ */ new Set(["test", "tests", "__tests__", "__snapshots__", "__mocks__", "e2e"]);
|
|
900
|
-
var TEST_FILE = /\.(test|spec)\.[cm]?[jt]sx
|
|
900
|
+
var TEST_FILE = /\.(test|spec)\.[cm]?[jt]sx?$|\.stories\.([cm]?[jt]sx?|mdx)$|^test_.*\.py$|_test\.(py|go)$|^conftest\.py$/;
|
|
901
901
|
function isTestPath(path) {
|
|
902
902
|
const parts = path.split("/");
|
|
903
903
|
const name = parts.at(-1) ?? "";
|
|
@@ -1373,6 +1373,9 @@ function decideUat(pr) {
|
|
|
1373
1373
|
const kinds = categories.length > 0 ? categories.join(", ") : "no files";
|
|
1374
1374
|
return { findings: [info2(`No UAT needed: the PR changes only ${kinds}.`)] };
|
|
1375
1375
|
}
|
|
1376
|
+
if (parseTitle(pr.title)?.type === "refactor") {
|
|
1377
|
+
return { findings: [info2("No UAT needed: a refactor changes no behaviour.")] };
|
|
1378
|
+
}
|
|
1376
1379
|
const state = signOffState(pr, PASSING_LABELS);
|
|
1377
1380
|
if (state.status === "trusted") {
|
|
1378
1381
|
return {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rmartz/pr-policy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.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",
|