https://github.com/liblaf/copier-shared
๐งฐ Copier template for shared repository maintenance with pre-commit, GitHub Actions, MegaLinter, and reproducible updates.
https://github.com/liblaf/copier-shared
automation code-quality continuous-integration copier copier-template developer-tooling github-actions megalinter pre-commit project-template repository-hygiene repository-maintenance
Last synced: 14 days ago
JSON representation
๐งฐ Copier template for shared repository maintenance with pre-commit, GitHub Actions, MegaLinter, and reproducible updates.
- Host: GitHub
- URL: https://github.com/liblaf/copier-shared
- Owner: liblaf
- License: mit
- Created: 2024-10-14T13:01:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-06-01T18:16:41.000Z (20 days ago)
- Last Synced: 2026-06-01T20:15:44.920Z (20 days ago)
- Topics: automation, code-quality, continuous-integration, copier, copier-template, developer-tooling, github-actions, megalinter, pre-commit, project-template, repository-hygiene, repository-maintenance
- Language: Jinja
- Homepage:
- Size: 353 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://github.com/copier-org/copier)
[](https://github.com/liblaf/copier-shared/actions/workflows/shared-copier-update.yaml)
[](https://github.com/liblaf/copier-shared/actions/workflows/shared-mega-linter.yaml)
[](https://results.pre-commit.ci/latest/github/liblaf/copier-shared/main)
[Changelog](https://github.com/liblaf/copier-shared/blob/main/CHANGELOG.md) ยท [Issues](https://github.com/liblaf/copier-shared/issues) ยท [Pull Requests](https://github.com/liblaf/copier-shared/pulls) ยท [Copier Docs](https://copier.readthedocs.io/)

## ๐ About
`copier-shared` is the maintenance layer for a repository. It is a
[Copier](https://github.com/copier-org/copier) template that adds the boring
but valuable parts of project hygiene for you: shared pre-commit hooks,
automation workflows, and a committed answers file so the template can be
re-applied later without guesswork.
## โจ What You Get
- ๐ช A generated `.pre-commit-config.yaml` with Ruff, Biome,
`dotenv-linter`, `shellcheck`, `rumdl`, and the standard pre-commit safety
hooks.
- ๐ค Three GitHub Actions workflows for weekly Copier refresh PRs,
MegaLinter autofix PRs, and scheduled review runs.
- ๐งพ A generated answers file at `.config/copier/.copier-answers.shared.yaml`
so updates stay reproducible.
- ๐งน Cleanup tasks that remove older shared files like `.envrc`, legacy
Renovate config, and retired workflow names when the template is refreshed.
- ๐งฉ A small prompt surface: project name, slug, author, email, license,
GitHub owner, and repository name.
## ๐ Use It
```bash
copier copy --trust gh:liblaf/copier-shared .
```
Copier will ask for the project metadata it needs, then generate the shared
files in your repository.
## ๐ฆ Generated Files
| Path | Why it exists |
| ---- | ------------- |
| `.config/copier/.copier-answers.shared.yaml` | Saves the answers used to apply the template. |
| `.config/rumdl.toml` | Keeps Markdown linting rules aligned across repos. |
| `.pre-commit-config.yaml` | Installs the shared formatting, linting, and safety hooks. |
| `.github/workflows/shared-copier-update.yaml` | Opens a weekly PR with the latest template changes. |
| `.github/workflows/shared-mega-linter.yaml` | Runs MegaLinter and opens an autofix PR when possible. |
| `.github/workflows/shared-review.yaml` | Runs scheduled review jobs for automation PRs. |
## ๐ Update An Existing Repo
The answers file is committed on purpose. To re-apply the template locally, run:
```bash
copier recopy --trust --answers-file .config/copier/.copier-answers.shared.yaml
```
The bundled `Shared / Copier Update` workflow follows the same approach on a weekly schedule and turns the result into a pull request.
## ๐ ๏ธ Work On The Template
```bash
git clone https://github.com/liblaf/copier-shared.git
cd copier-shared
```
- ๐งฑ Edit `template/` when you want to change the files generated in downstream
repositories.
- โ๏ธ Edit `copier.yaml` when you want to change prompts, defaults, or cleanup
tasks.
- ๐งช Re-run Copier against a scratch repository to verify the generated output
before publishing a new tag.
## ๐ค Contributing
Issues and pull requests are welcome. If you want to improve the shared
defaults, tighten automation, or simplify the update story, this repo is the
right place to do it.
---
#### ๐ License
Copyright ยฉ 2024 [liblaf](https://github.com/liblaf).
This project is licensed under the [MIT License](./LICENSE).