Skip to content

Commit

Permalink
Update sync_issues.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rcstanciu authored Oct 26, 2023
1 parent c9f7718 commit cdb972f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .data/sync_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,16 +206,16 @@ def process_directory(repo, path):
}
dir_issues_ids.append(issue_id)

# Set the parent field for all duplicates in this directory
if parent is None and severity != "false":
raise Exception("Family %s does not have a primary file (-best.md)." % path)

if parent:
for issue_id in dir_issues_ids:
if issue_id != parent:
issues[parent]["has_duplicates"] = True
issues[issue_id]["parent"] = parent
issues[issue_id]["closed"] = True
# Set the parent field for all duplicates in this directory
if parent is None and severity != "false":
raise Exception("Family %s does not have a primary file (-best.md)." % path)

if parent:
for issue_id in dir_issues_ids:
if issue_id != parent:
issues[parent]["has_duplicates"] = True
issues[issue_id]["parent"] = parent
issues[issue_id]["closed"] = True

# Process any directories inside
for directory in dirs:
Expand Down

0 comments on commit cdb972f

Please sign in to comment.