mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-18 23:09:03 +02:00
20 lines
752 B
TypeScript
20 lines
752 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[];
|
|
/**
|
|
* Repo-relative paths of files *added* in the current change set (the
|
|
* `added-files` output from `ci-filter`, a subset of `changedFiles`).
|
|
* Rules that should act only on net-new files — not files that were
|
|
* merely modified — use this. When omitted or empty, nothing was added,
|
|
* so such rules run no check.
|
|
*/
|
|
addedFiles?: string[];
|
|
}
|