Skip to content

Commit 00aaa61

Browse files
committed
fix deprecation logic for github files
1 parent 101a6bc commit 00aaa61

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

ansible/roles/github/templates/PULL_REQUEST_TEMPLATE.md.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{%- set markdown="gfm" -%}
22
{{- noter -}}
33
{% if project_deprecation_status %}
4-
{% include "README_SNIPPETS/DEPRECATION.j2" | trim %}
4+
{% include "deprecation.md.j2" | trim %}
55

66
{% endif %}
77
<!--- Provide a general summary of your changes in the Title above -->
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{ "This image is deprecated. We will not offer support for this image and it will not be updated." | admonition(flavour=markdown, severity="deprecation") }}
2+
3+
{% if project_deprecation_message is defined %}{{ noter(project_deprecation_message) }}{% endif %}

ansible/roles/github/templates/issue.bug.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ body:
1010
- type: markdown
1111
attributes:
1212
value: |
13-
{% include "README_SNIPPETS/DEPRECATION.j2" | indent(8) | trim %}
13+
{% include "deprecation.md.j2" | indent(8) | trim %}
1414

1515
{% else %}
1616
- type: checkboxes

ansible/roles/github/templates/issue.feature.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ body:
1010
- type: markdown
1111
attributes:
1212
value: |
13-
{% include "README_SNIPPETS/DEPRECATION.j2" | indent(8) | trim %}
13+
{% include "deprecation.md.j2" | indent(8) | trim %}
1414

1515
{% else %}
1616
- type: checkboxes

0 commit comments

Comments
 (0)