Skip to content

Commit 80e52f7

Browse files
authored
Fix escaping issues in workflows templates (frequenz-floss#60)
- Add missing `cookiecutter` namespace in templates - Use a raw block for template with jinja-like content
2 parents bb87b68 + 92b78de commit 80e52f7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cookiecutter/{{cookiecutter.github_repo_name}}/.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
blank_issues_enabled: true
55
contact_links:
66
- name: Ask a question ❓
7-
url: https://github.com/{{github_org}}/{{github_repo_name}}/discussions/new?category=support
7+
url: https://github.com/{{cookiecutter.github_org}}/{{cookiecutter.github_repo_name}}/discussions/new?category=support
88
# TODO(cookiecutter): Make sure the GitHub repository has a discussion category "Support"
99
# Rename the "Q&A" category to "Support" and change the emoji to 🆘 (SOS)
1010
about: Use this if you are not sure how to do something, have installation problems, etc.

cookiecutter/{{cookiecutter.github_repo_name}}/.github/workflows/labeler.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% raw -%}
12
name: Pull Request Labeler
23

34
on: [pull_request_target]
@@ -21,3 +22,4 @@ jobs:
2122
uses: actions/labeler@0776a679364a9a16110aac8d0f40f5e11009e327 # 4.0.4
2223
with:
2324
repo-token: "${{ secrets.GITHUB_TOKEN }}"
25+
{%- endraw %}

0 commit comments

Comments
 (0)