You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2022/07/27 08:46:52 UTC

[lucene-jira-archive] 01/01: avoid duplicate labels

This is an automated email from the ASF dual-hosted git repository.

tomoko pushed a commit to branch avoid-duplicated-labels
in repository https://gitbox.apache.org/repos/asf/lucene-jira-archive.git

commit b98f7b23eb4ff8f0acbe2700a269129031970802
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Wed Jul 27 17:46:42 2022 +0900

    avoid duplicate labels
---
 migration/src/jira2github_import.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/migration/src/jira2github_import.py b/migration/src/jira2github_import.py
index 6e3807e7..3974d6f1 100644
--- a/migration/src/jira2github_import.py
+++ b/migration/src/jira2github_import.py
@@ -208,6 +208,9 @@ def convert_issue(num: int, dump_dir: Path, output_dir: Path, account_map: dict[
             labels.append(f"legacy-jira-resolution:{resolution}")
         if priority:
             labels.append(f"legacy-jira-priority:{priority}")
+        
+        # ensure there are not duplicate labels
+        labels = list(set(labels))
 
         data = {
             "issue": {