Skip to content

Commit ec24ea3

Browse files
fix: capitalization of changelog fragments (#934)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
1 parent 8d3e494 commit ec24ea3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/source/changelog/934.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Capitalization of changelog fragments

python-utils/parse_pr_title.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,10 @@ def clean_pr_title(pr_title: str, use_cc: str):
196196
clean_title = clean_title.strip()
197197

198198
# Add backslash in front of backtick and double quote
199-
clean_title = clean_title.replace("`", "\\`").replace('"', '\\"').capitalize()
199+
clean_title = clean_title.replace("`", "\\`").replace('"', '\\"')
200+
201+
# Capitalize the first word of the title
202+
clean_title = clean_title[0].upper() + clean_title[1:]
200203

201204
# Save the clean pull request title as the CLEAN_TITLE environment variable
202205
save_env_variable("CLEAN_TITLE", clean_title)

0 commit comments

Comments
 (0)