From f97b2f464557845e6659437dacdfa678c8d056fd Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Thu, 9 Nov 2023 10:09:34 +0100 Subject: [PATCH] Sponsoring is optional. --- generate.yml | 4 ++-- files/feature_request.md => templates/feature_request.md.j2 | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) rename files/feature_request.md => templates/feature_request.md.j2 (64%) diff --git a/generate.yml b/generate.yml index da3098e..e035b37 100755 --- a/generate.yml +++ b/generate.yml @@ -112,8 +112,6 @@ dest: "{{ role_path }}/{{ item.dest | default(item.source) }}" mode: "{{ item.mode | default('0644') }}" with_items: - - source: feature_request.md - dest: .github/ISSUE_TEMPLATE/feature_request.md - source: gitignore dest: .gitignore - source: yamllint @@ -156,6 +154,8 @@ dest: .github/FUNDING.yml - source: bug_report.md dest: .github/ISSUE_TEMPLATE/bug_report.md + - source: feature_request.md + dest: .github/ISSUE_TEMPLATE/feature_request.md loop_control: label: "{{ item.source }}" diff --git a/files/feature_request.md b/templates/feature_request.md.j2 similarity index 64% rename from files/feature_request.md rename to templates/feature_request.md.j2 index 55a93c4..4a77bc4 100644 --- a/files/feature_request.md +++ b/templates/feature_request.md.j2 @@ -4,7 +4,7 @@ about: Suggest an idea for this project --- -## Proposed feature +# Proposed feature A clear and concise description of what you want to happen. @@ -16,4 +16,6 @@ Why is this feature required? Add any other context about the feature request here. -Please consider [sponsoring me](https://github.com/sponsors/robertdebock). +{% if sponsored_message %} +Please consider [sponsoring me](https://github.com/sponsors/{{ github_namespace }}). +{% endif %}