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/02 01:19:50 UTC
[lucene-jira-archive] 02/02: update README
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
commit 474579289893c639e2769ec1273ae2737b847b6a
Author: Tomoko Uchida <to...@gmail.com>
AuthorDate: Sat Jul 2 10:19:40 2022 +0900
update README
---
README.md | 10 +++++++++-
migration/README.md | 14 ++++++++++----
2 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index fb6a4aa6..d832a5de 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,15 @@ This repository serves for:
https://issues.apache.org/jira/browse/LUCENE-10557
-- [Archive Jira attachments](./attachments)
+- [Archive Jira attachments](https://github.com/apache/lucene-jira-archive/tree/attachments)
- Drafting Label management
- Drafting Issue templates
- [Migration script](./migration/)
+
+## Recommended: Use --single-branch when cloning
+
+All attachments (800MiB+) are kept in [attachments](https://github.com/apache/lucene-jira-archive/tree/attachments) branch. Not to clone all commit history at initial cloning, use `--single-branch --branch main` option that only clones the history of `main` branch.
+
+```
+git clone --single-branch --branch main git@github.com:apache/lucene-jira-archive.git
+```
diff --git a/migration/README.md b/migration/README.md
index 7629a793..c3227c96 100644
--- a/migration/README.md
+++ b/migration/README.md
@@ -4,6 +4,7 @@
You need Python 3.9+. The scripts were tested on Linux; maybe works also on Mac and Windows (not tested).
+On Linux/MacOS:
```
python -V
Python 3.9.13
@@ -14,18 +15,24 @@ source .venv/bin/activate
(.venv) pip install -r requirements.txt
```
-You need a GitHub repository and personal access token for testing. Set `GITHUB_PAT` and `GITHUB_REPO` environment variables.
+You need a GitHub repository and personal access token for testing. Set `GITHUB_PAT` and `GITHUB_REPO` environment variables. See `.env.example` for other variables.
+On Linux/MacOS:
```
+cp .env.example .env
+
+vi .env
export GITHUB_PAT=<your token>
export GITHUB_REPO=<your repository location> # e.g. "mocobeta/sandbox-lucene-10557"
+
+source .env
```
## Usage
### 1. Download Jira issues
-`src/download_jira.py` downloads Jira issues and dumps them as JSON files in `migration/jira-dump`.
+`src/download_jira.py` downloads Jira issues and dumps them as JSON files in `migration/jira-dump`. This also downloads attached filed in each issue.
```
(.venv) migration $ python src/download_jira.py --min 10500 --max 10600
@@ -110,6 +117,7 @@ You can:
* migrate all texts in issue descriptions and comments to GitHub; browsing/searching old issues should work fine.
* extract every issue metadata from Jira and port it to labels or issue descriptions (as plain text).
+* Create links to attachments.
* map Jira cross-issue link "LUCENE-xxx" to GitHub issue mention "#yyy".
* map Jira user ids to GitHub accounts if the mapping is given.
* convert Jira markups to Markdown with parser library.
@@ -122,5 +130,3 @@ You can:
You cannot:
* simulate original issue reporters or comment authors; they have to be preserved in free-text forms.
-* migrate attached files (patches, images, etc.) to GitHub; these have to remain in Jira.
- * it's not allowed to programmatically upload files and attach them to issues.