@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.
@@ -7,7 +7,7 @@ import {
7
7
  postVerdict,
8
8
  resolveRepoTarget,
9
9
  selectChecks
10
- } from "../chunk-VJXHTDY2.js";
10
+ } from "../chunk-USVRZJHF.js";
11
11
 
12
12
  // src/bin/pr-policy.ts
13
13
  import { readFile } from "fs/promises";
@@ -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?$|^test_.*\.py$|_test\.(py|go)$|^conftest\.py$/;
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
@@ -48,7 +48,7 @@ import {
48
48
  sensitiveBumps,
49
49
  statusBody,
50
50
  titleCheck
51
- } from "./chunk-VJXHTDY2.js";
51
+ } from "./chunk-USVRZJHF.js";
52
52
  export {
53
53
  AMBIGUOUS_INDICATORS,
54
54
  BLOCKED_LABEL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rmartz/pr-policy",
3
- "version": "0.13.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",