Skip to content

Commit d1e7788

Browse files
authored
Add CODEOWNERS File to Template Repo and The Project Template (#124)
* Add CODEOWNERS file and update copier.yml for code owner configuration
1 parent 859a6f5 commit d1e7788

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
2+
3+
* @ONSdigital/ons-python-template

copier.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ repository_owner:
5454
help: "What is your repository owner? (e.g. your GitHub username)"
5555
default: "ONSdigital"
5656

57+
code_owner:
58+
type: str
59+
help: "What is your CODEOWNERS default? (e.g. @org/team or @username)"
60+
validator: >-
61+
{% if not code_owner.startswith('@') %}
62+
CODEOWNERS must start with '@' (e.g. @username or @org/team)
63+
{% endif %}
64+
5765
repository_visibility:
5866
type: str
5967
help: "What is your repository visibility?"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
2+
3+
* {{ code_owner }}

0 commit comments

Comments
 (0)