Skip to content

Commit

Permalink
Update get-en-duplicated-notes.py (#19723)
Browse files Browse the repository at this point in the history
Co-authored-by: Grace Cai <[email protected]>
  • Loading branch information
qiancai and Grace Cai authored Dec 18, 2024
1 parent 92f3d77 commit a3ba93a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions scripts/get-en-duplicated-notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,10 @@ def store_exst_rn(ext_path,main_path):
exst_issue_num = re.search(r'https://github.com/(pingcap|tikv)/[\w-]+/(issues|pull)/\d+', line)
authors = re.findall(r'@\[([^\]]+)\]', line) # Get the list of authors in this line
if exst_issue_num:
if exst_issue_num.group() not in exst_issue_nums:
note_level = level1 + level2 + level3
note_pair = [exst_issue_num.group(),line.strip(),afile, note_level, authors]
exst_issue_nums.append(exst_issue_num.group())
exst_notes.append(note_pair)
else:
continue
note_level = level1 + level2 + level3
note_pair = [exst_issue_num.group(),line.strip(),afile, note_level, authors]
exst_issue_nums.append(exst_issue_num.group())
exst_notes.append(note_pair)
elif line.startswith("##"):
level1 = "> " + line.replace("##","").strip()
level2 = level3 = ""
Expand Down

0 comments on commit a3ba93a

Please sign in to comment.