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/11 07:30:49 UTC

[lucene-jira-archive] branch main updated: make converter script work without account mapping file (#31)

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 21094e66 make converter script work without account mapping file (#31)
21094e66 is described below

commit 21094e669859aa58c12f27e2403fda3474e5f90f
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Mon Jul 11 16:30:46 2022 +0900

    make converter script work without account mapping file (#31)
---
 migration/README.md                 | 2 +-
 migration/src/jira2github_import.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/migration/README.md b/migration/README.md
index 6f3c689e..7a801411 100644
--- a/migration/README.md
+++ b/migration/README.md
@@ -63,7 +63,7 @@ Downloaded attachments should be separately committed to a dedicated branch name
 
 `src/jira2github_import.py` converts Jira dumps into GitHub data that are importable to [issue import API](https://gist.github.com/jonmagic/5282384165e0f86ef105). Converted JSON data is saved in `migration/github-import-data`.
 
-This also resolves all Jira user ID - GitHub account alignment if the account mapping is given in `mapping-data/account-map.csv`.  If you have no mapping, `cp mapping-data/account-map.csv{.example,}`.
+This also resolves all Jira user ID - GitHub account alignment if the account mapping is given in `mapping-data/account-map.csv`.
 
 ```
 (.venv) migration $ python src/jira2github_import.py --min 10500 --max 10510
diff --git a/migration/src/jira2github_import.py b/migration/src/jira2github_import.py
index ef789d37..9eebcd27 100644
--- a/migration/src/jira2github_import.py
+++ b/migration/src/jira2github_import.py
@@ -198,7 +198,7 @@ if __name__ == "__main__":
         output_dir.mkdir()
     assert output_dir.exists()
 
-    account_map = read_account_map(account_mapping_file) if account_mapping_file else {}
+    account_map = read_account_map(account_mapping_file) if account_mapping_file.exists() else {}
 
     issues = []
     if args.issues: