You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: support default-status-checks at repository level (#1112)
## Problem
`default-status-checks` was only accepted at the global config level.
Different repos need different external CI checks required for
`can-be-merged`, but there was no way to configure this per-repo.
## Solution
The runtime code (`Config.get_value()`) already resolves per-repo →
global config, so per-repo `default-status-checks` already worked at
runtime. Only the YAML schema was missing the property at the per-repo
level, causing schema validation to reject it.
### Changes
- `webhook_server/config/schema.yaml` — added `default-status-checks` to
per-repo properties
- `examples/config.yaml` — added per-repo usage example
- `webhook_server/tests/test_config_schema.py` — added test validating
schema acceptance and runtime resolution via `Config()` constructor
- `docs/repository-overrides.md` — added row to overrides table
### Config example
```yaml
repositories:
my-repo:
name: my-org/my-repo
default-status-checks:
- "WIP"
- "can-be-merged"
- "ci/my-external-check"
```
Closes#1111
Assisted-by: Claude <noreply@anthropic.com>
---------
Signed-off-by: rnetser <rnetser@redhat.com>
0 commit comments