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:51 UTC

[lucene-jira-archive] branch avoid-duplicated-labels created (now b98f7b23)

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

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


      at b98f7b23 avoid duplicate labels

This branch includes the following new commits:

     new b98f7b23 avoid duplicate labels

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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

Posted by to...@apache.org.
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": {