Skip to content

Commit fda1796

Browse files
committed
rename regex for clarity
1 parent ee53012 commit fda1796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/update-release-branch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def process_changelog_for_backports(source_branch_major_version, target_branch_m
179179

180180
# changelog entries can use the following format to indicate
181181
# that they only apply to newer versions
182-
regex = re.compile(r'\[v(\d+)\+ only\]')
182+
some_versions_only_regex = re.compile(r'\[v(\d+)\+ only\]')
183183

184184
output = ''
185185

@@ -205,7 +205,7 @@ def process_changelog_for_backports(source_branch_major_version, target_branch_m
205205
line = line.rstrip()
206206

207207
# filter out changenote entries that apply only to newer versions
208-
match = regex.search(line)
208+
match = some_versions_only_regex.search(line)
209209
if match:
210210
if int(target_branch_major_version) < int(match.group(1)):
211211
continue

0 commit comments

Comments
 (0)