File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -536,6 +536,7 @@ jobs:
536
536
-e 's/:gh:`\([-.a-zA-Z0-9]\+\)`/https:\/\/github.com\/\1/g'
537
537
-e 's/:\(issue\|pr\):`\([0-9]\+\)`/#\2/g'
538
538
-e 's/:user:`\([-.a-zA-Z0-9]\+\)`/@\1/g'
539
+ -e 's/|project|/ansible-pylibssh/g'
539
540
'${{ needs.pre-setup.outputs.changelog-draft-name-rst }}'
540
541
shell : bash
541
542
- name : Install pandoc via apt
Original file line number Diff line number Diff line change @@ -92,6 +92,9 @@ def sanitize_rst_roles(rst_source_text: str) -> str: # noqa: WPS210
92
92
"""
93
93
substitution_pattern = r'``\g<rendered_text>``'
94
94
95
+ project_substitution_regex = '|project|'
96
+ project_substitution_pattern = 'ansible-pylibssh'
97
+
95
98
substitutions = (
96
99
(pep_role_regex , pep_substitution_pattern ),
97
100
(user_role_regex , user_substitution_pattern ),
@@ -101,6 +104,7 @@ def sanitize_rst_roles(rst_source_text: str) -> str: # noqa: WPS210
101
104
(gh_role_regex , gh_substitution_pattern ),
102
105
(meth_role_regex , meth_substitution_pattern ),
103
106
(role_regex , substitution_pattern ),
107
+ (project_substitution_regex , project_substitution_pattern ),
104
108
)
105
109
106
110
rst_source_normalized_text = rst_source_text
You can’t perform that action at this time.
0 commit comments