Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Default owners for all files in this repository.
* @d33bs
2 changes: 2 additions & 0 deletions .github/CODEOWNERS.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Default owners for all files in this repository.
* {{ github_primary_reviewer }}
1 change: 1 addition & 0 deletions README.md.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ In addition, consider the following steps to help ensure the project is in good
- [ ] Remove files you plan on not using (e.g. `src/notebooks`, `.github/workflows/publish-pypi.yml`, etc.).
- [ ] Update the `LICENSE` file based on the project.
- [ ] Update the `CITATION.cff` file based on the project.
- [ ] Update `.github/CODEOWNERS` with the right GitHub handle(s) for review ownership, and expand it to additional owners/teams and path-specific ownership rules as the project grows.
- [ ] Update the project dependencies using `uv remove` or `uv add`.
- [ ] Update the `pyproject.toml` file based on the project.
- [ ] Enable `pre-commit-lite` to help automate corrections to code during pull request updates. Otherwise, consider removing the step: labeled with: `pre-commit-ci/lite-action` within `.github/workflows/run-tests.yml`.
Expand Down
8 changes: 8 additions & 0 deletions copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ github_url:
This will be used in the package metadata
and other places.

github_primary_reviewer:
type: str
default: "@your-github-handle"
help: >-
Primary GitHub reviewer handle for CODEOWNERS
(for example: @octocat). This is used to route
default review requests on pull requests.

_exclude:
- .git
- .DS_Store
Expand Down
2 changes: 2 additions & 0 deletions tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def test_template(tmp_path: Path) -> None:
"author_name": "Test Author",
"author_orcid": "https://orcid.org/0000-0000-0000-0000",
"github_url": "https://github.com/org/repo",
"github_primary_reviewer": "@octocat",
},
quiet=True,
overwrite=True,
Expand Down Expand Up @@ -71,6 +72,7 @@ def test_template_preserves_existing_git_repo(tmp_path: Path) -> None:
"author_name": "Test Author",
"author_orcid": "https://orcid.org/0000-0000-0000-0000",
"github_url": "https://github.com/org/repo",
"github_primary_reviewer": "@octocat",
},
quiet=True,
overwrite=True,
Expand Down
Loading