n8n/packages/testing/code-health/src/context.ts
Declan Carroll 6f365bf3c8
ci: Enforce migration ordering in code-health rule (no-changelog) (#30511)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-18 10:12:55 +00:00

12 lines
394 B
TypeScript

export interface CodeHealthContext {
rootDir: string;
/**
* Repo-relative paths of files changed in the current change set
* (typically the `changed-files` output from the `ci-filter` action).
* When supplied, rules that need to scope checks to "files touched in
* this PR" can use this set. When omitted, rules fall back to
* whole-tree behaviour.
*/
changedFiles?: string[];
}