Skip to content

Require codeowners for each example - #5

Open
Alex-Omar-Nvidia wants to merge 1 commit into
NVIDIA:mainfrom
Alex-Omar-Nvidia:aomar/codex/require-codeowners-for-each-example
Open

Alex-Omar-Nvidia wants to merge 1 commit into
NVIDIA:mainfrom
Alex-Omar-Nvidia:aomar/codex/require-codeowners-for-each-example

Conversation

@Alex-Omar-Nvidia

Copy link
Copy Markdown
Contributor

New examples can currently pass PR CI without a dedicated CODEOWNERS entry. Add a PR workflow job that checks every sample follows examples/<topic>/<example_folder>/ and has an exact /examples/<topic>/<example_folder>/ @owner rule. Invalid layouts and missing ownership fail with descriptive guidance; wildcard and topic-wide rules do not satisfy the ownership check.

Document the required layout and CODEOWNERS syntax using the existing Felix-owned sample and a new contribution example, and add a commented template to CODEOWNERS.

Validation: seven regression tests pass, command-line checks confirm valid samples succeed and invalid layouts or missing owners exit with an error, the current repository passes validation, and Ruff lint/format checks and git diff --check pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant