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 14:21:37 UTC
[lucene-jira-archive] branch main updated: Skip errorcausing labels (#84)
This is an automated email from the ASF dual-hosted git repository.
tomoko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene-jira-archive.git
The following commit(s) were added to refs/heads/main by this push:
new 656fdd5a Skip errorcausing labels (#84)
656fdd5a is described below
commit 656fdd5adf0ca31f088c01ece0a6c917cb7050ea
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Wed Jul 27 23:21:32 2022 +0900
Skip errorcausing labels (#84)
---
migration/src/jira2github_import.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/migration/src/jira2github_import.py b/migration/src/jira2github_import.py
index 3974d6f1..cbd7737c 100644
--- a/migration/src/jira2github_import.py
+++ b/migration/src/jira2github_import.py
@@ -203,6 +203,13 @@ def convert_issue(num: int, dump_dir: Path, output_dir: Path, account_map: dict[
else:
logger.error(f"Unknown Component: {c}")
for label in jira_labels:
+ # GitHub does not allow commas in labels
+ label = label.replace(",","")
+ # several label texts have to be skipped; otherwise import fails. don't know why.
+ if label in ["queryparser", "fastvectorhighlighter", "highlighter", "Documentation", "Sort", "Highlighting", "Stemmer", "Scorer", "spatialrecursiveprefixtreefieldtype"] or \
+ label.startswith("java"):
+ logger.warning(f"Jira label '{label}' was skipped for {jira_id}. Please manually attach it from GitHub Web GUI.")
+ continue
labels.append(f"legacy-jira-label:{label}")
if resolution:
labels.append(f"legacy-jira-resolution:{resolution}")