feat: add check for codeowners

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2026-02-05 10:55:14 +01:00
parent e394510993
commit 1481293b7c
13 changed files with 377 additions and 55 deletions

View File

@@ -0,0 +1,16 @@
#:schema ../schema.json
mode = "warn"
[github]
organisation = "understory-io"
credentials.token_env = "GITHUB_ACCESS_TOKEN"
[filter]
allow = ["^canopy-.*$"]
[schedule]
once = true
[policies]
has_codeowners.enabled = true

View File

@@ -1,15 +1,18 @@
#:schema ../schema.json
mode = "update"
[github]
organisation = "understory-io"
credentials.token_env = "GITHUB_ACCESS_TOKEN"
[filter]
allow = ["^canopy-.*$"]
deny = ["^infrastructure-.*$", "^canopy-data-gateway$"]
allow = ["^canopy-data-gateway$"]
# deny = ["^infrastructure-.*$", "^canopy-data-gateway$"]
[schedule]
once = true
[policies]
squash_merge_only.enabled = true
allow_auto_merge.enabled = true

View File

@@ -7,7 +7,10 @@
"$ref": "#/$defs/Filter"
},
"policies": {
"$ref": "#/$defs/Policies"
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/PolicyOption"
}
},
"schedule": {
"$ref": "#/$defs/ForgeSchedule"
@@ -137,15 +140,6 @@
}
]
},
"Policies": {
"type": "object",
"properties": {
"squash_merge_only": {
"$ref": "#/$defs/PolicyOption"
}
},
"additionalProperties": false
},
"PolicyOption": {
"type": "object",
"properties": {