From d193b5b713516675e9bbc531085054f130f1156c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 19:41:01 +0000 Subject: [PATCH 1/2] Initial plan From e3257d70cac493a93557ae91d8098450b4d845f2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 19:43:40 +0000 Subject: [PATCH 2/2] Fix prettier formatting in README and test file Co-authored-by: mikeharder <9459391+mikeharder@users.noreply.github.com> --- .github/workflows/README-staging-lint-checks.md | 8 ++++---- .github/workflows/test/extract-rule-names.test.js | 15 ++++++++++----- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/README-staging-lint-checks.md b/.github/workflows/README-staging-lint-checks.md index e6ac71e7..b79d28e6 100644 --- a/.github/workflows/README-staging-lint-checks.md +++ b/.github/workflows/README-staging-lint-checks.md @@ -78,10 +78,10 @@ workflow behavior based on testing requirements. ### Labels -| Label | Purpose | -|---|---| -| `test-` | Specifies a rule to validate (e.g., `test-PostResponseCodes`) | -| `errors-acknowledged` | Confirms the PR author has reviewed validation errors | +| Label | Purpose | +| --------------------- | ------------------------------------------------------------- | +| `test-` | Specifies a rule to validate (e.g., `test-PostResponseCodes`) | +| `errors-acknowledged` | Confirms the PR author has reviewed validation errors | ## Debugging and Troubleshooting diff --git a/.github/workflows/test/extract-rule-names.test.js b/.github/workflows/test/extract-rule-names.test.js index 8ccaa3d0..83716dc5 100644 --- a/.github/workflows/test/extract-rule-names.test.js +++ b/.github/workflows/test/extract-rule-names.test.js @@ -102,7 +102,7 @@ describe("extract-rule-names", () => { expect(result).toEqual(expected); }); }); - + describe("checkBlockingConditions", () => { function mockCore() { return { @@ -233,7 +233,10 @@ describe("extract-rule-names", () => { describe("detectRuleChanges", () => { test("returns true when rule files are changed", async () => { const mockPaginate = vi.fn().mockResolvedValue([ - { filename: "packages/rulesets/src/spectral/functions/post-response-codes.ts", status: "modified" }, + { + filename: "packages/rulesets/src/spectral/functions/post-response-codes.ts", + status: "modified", + }, { filename: "README.md", status: "modified" }, ]); const github = { @@ -286,9 +289,11 @@ describe("extract-rule-names", () => { }); test("ignores deleted rule files", async () => { - const mockPaginate = vi.fn().mockResolvedValue([ - { filename: "packages/rulesets/src/spectral/az-arm.ts", status: "removed" }, - ]); + const mockPaginate = vi + .fn() + .mockResolvedValue([ + { filename: "packages/rulesets/src/spectral/az-arm.ts", status: "removed" }, + ]); const github = { paginate: mockPaginate, rest: { pulls: { listFiles: "listFiles" } },