fix(tooling): keep gitignore changes scoped

This commit is contained in:
Peter Steinberger
2026-04-23 05:50:14 +01:00
parent e763ea1119
commit 69a4977fc7
2 changed files with 15 additions and 1 deletions

View File

@@ -160,6 +160,20 @@ describe("scripts/changed-lanes", () => {
expect(plan.commands.map((command) => command.args[0])).toContain("tsgo:all");
});
it("routes gitignore changes to tooling instead of all lanes", () => {
const result = detectChangedLanes([".gitignore"]);
const plan = createChangedCheckPlan(result);
expect(result.lanes).toMatchObject({
tooling: true,
all: false,
});
expect(plan.runFullTests).toBe(false);
expect(plan.runChangedTestsBroad).toBe(false);
expect(plan.commands.map((command) => command.args[0])).toContain("lint:scripts");
expect(plan.commands.map((command) => command.args[0])).not.toContain("tsgo:all");
});
it("keeps release metadata commits off the full changed gate", () => {
const result = detectChangedLanes([
"CHANGELOG.md",