Add GitHub Issues migration script (bd-68)
- New gh2jsonl.py script supports GitHub API and JSON file import - Maps GitHub labels to bd priority/type/status - Preserves metadata, assignees, timestamps, external refs - Auto-detects cross-references and creates dependencies - Production-ready: User-Agent, rate limit handling, UTF-8 support - Comprehensive README with examples and troubleshooting - Tested and reviewed Amp-Thread-ID: https://ampcode.com/threads/T-2fc85f05-302b-4fc9-8cac-63ac0e03c9af Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
52
examples/github-import/example-issues.json
Normal file
52
examples/github-import/example-issues.json
Normal file
@@ -0,0 +1,52 @@
|
||||
[
|
||||
{
|
||||
"number": 42,
|
||||
"title": "Add user authentication",
|
||||
"body": "Implement JWT-based authentication.\n\nThis blocks #43 and is related to #44.",
|
||||
"state": "open",
|
||||
"labels": [
|
||||
{"name": "feature"},
|
||||
{"name": "high"},
|
||||
{"name": "security"}
|
||||
],
|
||||
"assignee": {
|
||||
"login": "alice"
|
||||
},
|
||||
"created_at": "2025-01-15T10:00:00Z",
|
||||
"updated_at": "2025-01-16T14:30:00Z",
|
||||
"html_url": "https://github.com/example/repo/issues/42"
|
||||
},
|
||||
{
|
||||
"number": 43,
|
||||
"title": "Add API rate limiting",
|
||||
"body": "Implement rate limiting for API endpoints.\n\nDepends on authentication (#42) being completed first.",
|
||||
"state": "open",
|
||||
"labels": [
|
||||
{"name": "feature"},
|
||||
{"name": "p1"}
|
||||
],
|
||||
"assignee": {
|
||||
"login": "bob"
|
||||
},
|
||||
"created_at": "2025-01-15T11:00:00Z",
|
||||
"updated_at": "2025-01-15T11:00:00Z",
|
||||
"html_url": "https://github.com/example/repo/issues/43"
|
||||
},
|
||||
{
|
||||
"number": 44,
|
||||
"title": "Fix login redirect bug",
|
||||
"body": "Login page redirects to wrong URL after authentication.",
|
||||
"state": "closed",
|
||||
"labels": [
|
||||
{"name": "bug"},
|
||||
{"name": "critical"}
|
||||
],
|
||||
"assignee": {
|
||||
"login": "charlie"
|
||||
},
|
||||
"created_at": "2025-01-10T09:00:00Z",
|
||||
"updated_at": "2025-01-12T16:00:00Z",
|
||||
"closed_at": "2025-01-12T16:00:00Z",
|
||||
"html_url": "https://github.com/example/repo/issues/44"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user