Skip to content

Commit

Permalink
Update release_notes_auto_tw_assignment.py
Browse files Browse the repository at this point in the history
  • Loading branch information
qiancai committed Aug 15, 2024
1 parent 0f36177 commit ed58177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release_notes_auto_tw_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def insert_assignment_info(release_notes_file, assignments, tasks, line_numbers)
lines[line_index] = lines[line_index].rstrip() + comment_a + "\n"
subtask_count = 0
for i in range(line_index + 1, len(lines)):
if lines[i].strip().startswith('-') and '(dup):' not in lines[i].strip() and 'note [#issue]' not in lines[i].strip():
if lines[i].strip().startswith('-') and all(substring not in lines[i] for substring in ignored_lines):
subtask_count += 1
if subtask_count == tasks[f'{most_subtasks_task} - part 1']:
comment_b = f" <!--tw@{tw[1]}: the following {tasks[f'{most_subtasks_task} - part 2']} notes-->"
Expand Down

0 comments on commit ed58177

Please sign in to comment.