mirror of
https://github.com/cozystack/cozystack.git
synced 2026-11-22 12:43:32 +09:00
Scope the gate's own files (cmd/api-gate, internal/apigate, the workflow) to the API owners in CODEOWNERS, and compile the detector from the trusted base checkout when present (head fallback only during bootstrap), so a PR cannot neuter the gate by editing its own detector code. Detect two more breaking vectors: removing nullable:true (rejects null) and adding a oneOf/allOf/not composition constraint. Both covered by regression tests. Assisted-By: Claude <noreply@anthropic.com> Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
12 lines
701 B
Plaintext
12 lines
701 B
Plaintext
* @kvaps @lllamnyp @lexfrei @androndo @IvanHunters @sircthulhu @myasnikovdaniil
|
|
|
|
# The API review gate must not be editable without an API-owner review, or a
|
|
# PR could neuter the detector (it is compiled from the head checkout during
|
|
# bootstrap) and slip a sizeable API change through unreviewed. Scoping these
|
|
# paths to the API owners overrides the catch-all above (last match wins), so
|
|
# changes here require @kvaps or @lllamnyp specifically. Enable "Require review
|
|
# from Code Owners" in branch protection for this to bind.
|
|
/cmd/api-gate/ @kvaps @lllamnyp
|
|
/internal/apigate/ @kvaps @lllamnyp
|
|
/.github/workflows/api-review-gate.yaml @kvaps @lllamnyp
|