Validating CODEOWNERs on GitHub
https://github.com/renovatebot/renovate/blob/main/lib/modules/platform/local/index.md
jamie@TimTheEnchanter ~ % gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/oapi-codegen/runtime/codeowners/errors
{
"errors": [
{
"line": 1,
"column": 3,
"source": "* @oapi-codegen/maintainers\n",
"kind": "Unknown owner",
"suggestion": "make sure the team @oapi-codegen/maintainers exists, is publicly visible, and has write access to the repository",
"message": "Unknown owner on line 1: make sure the team @oapi-codegen/maintainers exists, is publicly visible, and has write access to the repository\n\n * @oapi-codegen/maintainers\n ^",
"path": ".github/CODEOWNERS"
}
]
}
jamie@TimTheEnchanter ~ % gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/oapi-codegen/runtime/codeowners/errors
{
"errors": []
}