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:24:25 UTC
[lucene-jira-archive] 01/01: make converter script work without account mapping file
This is an automated email from the ASF dual-hosted git repository.
tomoko pushed a commit to branch make-converter-work-without-account-mapping
in repository https://gitbox.apache.org/repos/asf/lucene-jira-archive.git
commit 8b9a50a831f9203cb57ef264557b6b3b76cd5e22
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Mon Jul 11 16:24:14 2022 +0900
make converter script work without account mapping file
---
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: