angular-cn/dev-infra
Paul Gschwendtner f0c570bd41 feat(dev-infra): pullapprove verify should handle `files` in conditions (#36661)
Currently, when verifying our pullapprove configuration, we don't
respect modifications to the set of files in a condition.

e.g. It's not possible to do the following:

```
contains_any_globs(files.exclude(...), [
```

This prevents us from having codeowner groups which match a directory,
but want to filter out specific sub directories. For example, `fw-core`
matches all files in the core package. We want to exclude the schematics
from that glob. Usually we do this by another exclude condition.

This has a *significant* downside though. It means that fw-core will not
be requested if a PR changes schematic code, _and_ actual fw-core code.

To support these conditions, the pullapprove verification tool is
refactored, so that it no longer uses Regular expressions for parsing,
but rather evaluates the code through a dynamic function. This is
possible since the conditions are written in simple Python that can
be run in NodeJS too (with small modifications/transformations).

PR Close #36661
2020-04-23 12:17:10 -07:00
..
commit-message fix(dev-infra): extract commit headers before checking commit message validity (#36733) 2020-04-21 12:49:27 -04:00
pullapprove feat(dev-infra): pullapprove verify should handle `files` in conditions (#36661) 2020-04-23 12:17:10 -07:00
ts-circular-dependencies docs(dev-infra): document limitation in ts-circular-deps tool (#36659) 2020-04-17 16:25:00 -04:00
utils build: reformat repo to new clang@1.4.0 (#36613) 2020-04-14 12:08:36 -07:00
BUILD.bazel feat(dev-infra): standard CLI commands using yargs (#36326) 2020-04-01 15:24:28 -07:00
cli.ts feat(dev-infra): standard CLI commands using yargs (#36326) 2020-04-01 15:24:28 -07:00
ng-dev ci: use dev-infra cli from local sources (#36326) 2020-04-01 15:24:29 -07:00
tmpl-package.json build: remove rollup packaging from dev-infra (#35647) 2020-03-17 12:27:07 -07:00