Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions .github/boring-cyborg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,17 +348,22 @@ labelPRBasedOnFilePath:
- .readthedocs.yml

# This should be copy of the "area:dev-tools" above minus contributing docs and some files that should
# only make sense in main - it should be updated when we switch maintenance branch
# only make sense in main - it should be updated when we switch maintenance branch.
# Scoped to PRs targeting `main` only — a PR opened directly against v3-2-test
# does not need a backport-to-v3-2-test label.
backport-to-v3-2-test:
- scripts/**/*
- dev/**/*
- .github/**/*
- Dockerfile.ci
- yamllint-config.yml
- .dockerignore
- .hadolint.yaml
- .pre-commit-config.yaml
- .rat-excludes
paths:
- scripts/**/*
- dev/**/*
- .github/**/*
- Dockerfile.ci
- yamllint-config.yml
- .dockerignore
- .hadolint.yaml
- .pre-commit-config.yaml
- .rat-excludes
targetBranchFilter:
- ^main$

kind:documentation:
- airflow-core/docs/**/*
Expand Down
10 changes: 8 additions & 2 deletions scripts/ci/prek/boring_cyborg.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,14 @@
raise SystemExit(f"Missing section {CONFIG_KEY}")

errors = []
# Check if all patterns in the cyborg config are existing in the repository
for label, patterns in cyborg_config[CONFIG_KEY].items():
# Each label rule is either a list of glob patterns (legacy form) or an object
# with `paths` and an optional `targetBranchFilter` (see kaxil/boring-cyborg#112).
# Only the glob patterns in `paths` need to exist in the repository.
for label, rule in cyborg_config[CONFIG_KEY].items():
if isinstance(rule, dict):
patterns = rule.get("paths", [])
else:
patterns = rule
for pattern in patterns:
try:
next(Path(AIRFLOW_ROOT_PATH).glob(pattern))
Expand Down
Loading