From e6a444025769f1743084add3d8c2a0e99b364495 Mon Sep 17 00:00:00 2001 From: Aaron <7063649+ahcodedev@users.noreply.github.com> Date: Sat, 7 Nov 2026 11:49:56 -0800 Subject: [PATCH 1/2] Add Github badges --- README.md | 5 ++++- copier.yml | 9 +++++++++ template/README.md.jinja | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 79559b4..36549e8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ -# rust-template +# Rust Template + +[![Template](https://github.com/ahcodedev/rust-template/actions/workflows/template.yml/badge.svg?branch=main)](https://github.com/ahcodedev/rust-template/actions/workflows/template.yml) +[![gitleaks](https://img.shields.io/badge/protected%20by-gitleaks-blue)](https://github.com/gitleaks/gitleaks) Rust project template for [Copier](https://copier.readthedocs.io/). diff --git a/copier.yml b/copier.yml index fed15ce..f31fb4a 100644 --- a/copier.yml +++ b/copier.yml @@ -27,6 +27,15 @@ description: help: Short description of the project default: "" +github_owner: + type: str + help: GitHub user or organization that will host the repository (used for README badges) + +github_repo: + type: str + help: GitHub repository name (used for README badges) + default: "{{ project_name }}" + copyright_year: type: str help: Year used in the LICENSE copyright line diff --git a/template/README.md.jinja b/template/README.md.jinja index 9505879..32a8e96 100644 --- a/template/README.md.jinja +++ b/template/README.md.jinja @@ -1,5 +1,8 @@ # {{ project_name }} +[![Rust](https://github.com/{{ github_owner }}/{{ github_repo }}/actions/workflows/rust.yml/badge.svg?branch=main)](https://github.com/{{ github_owner }}/{{ github_repo }}/actions/workflows/rust.yml) +[![gitleaks](https://img.shields.io/badge/protected%20by-gitleaks-blue)](https://github.com/gitleaks/gitleaks) + {{ description }} ## Setup From 92b6473c959ab017ecd97194dbc74eb1f7dcea6e Mon Sep 17 00:00:00 2001 From: Aaron <7063649+ahcodedev@users.noreply.github.com> Date: Sat, 7 Nov 2026 11:52:59 -0800 Subject: [PATCH 2/2] Add default --- copier.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/copier.yml b/copier.yml index f31fb4a..751a80c 100644 --- a/copier.yml +++ b/copier.yml @@ -30,6 +30,7 @@ description: github_owner: type: str help: GitHub user or organization that will host the repository (used for README badges) + default: "" github_repo: type: str