Skip to content

migrate

Terminal window
holocron migrate issue <key> --from <source> --to <target>
holocron migrate issues --from <source> --to <target> (--all | --source-milestone <name> | --keys <a,b>) [--limit <n> [--order <oldest|newest>]]
holocron migrate project <name> --from <source> --to <target> [--template <name>] [--limit <n> [--order <oldest|newest>]]

--from and --to are provider or provider:key=value,..., for example github, github:repo=theholocron/holocron or linear:team=ENG. Options given there are applied over the repo’s own providers.issues entry when it is the same provider, so --from github --to linear:team=ENG needs nothing else when the repo already uses GitHub.

Command Moves
migrate issue one issue
migrate issues every issue (--all), a milestone or project (--source-milestone), or a list (--keys #1,#2)
migrate project the items of a board, with the board’s status and priority, onto a board (GitHub) or into a project (Linear) of the same name
Flag Meaning
--open-only leave closed issues behind
--milestone put every migrated issue in this milestone (GitHub) or project (Linear); made if missing
--template migrate project only: the board template a missing board is made from; default roadmap
--limit migrate issues and migrate project: read at most this many issues from the source, a positive whole number; see A trial run
--order with --limit: oldest (the default) reads the first created, newest the last created; no effect without --limit
--yes do not ask first (without a terminal the command refuses instead of hanging)
--dry-run read both sides and write nothing; prints what would be created and what would be lost

On a terminal, a spinner with a counter shows the read (Reading issues from github… 12 of 40) and the write (Writing to linear… 3 of 20; Checking linear… on a dry run), and is cleared before the result lines and the confirmation question. When the output is piped, in CI or with --quiet, nothing extra is printed.

--limit <n> reads only n issues from the source, so a first run over a large board is quick and stays under the source’s rate limits. --order oldest (the default) keeps the first created, --order newest the last created. migrate issue names one issue and has neither flag.

  • The limit counts issues that survive the other filters. --open-only and the skipping of pull requests never use it up, so --limit 20 --open-only reads twenty open issues.
  • The order is the creation order without extra requests where possible. For a list of keys (a board’s items, --keys) the keys are sorted by their number, which rises with creation inside one repository or team, and only the chosen end is fetched, at most four at a time. For a listing (--all, --source-milestone) the source’s own creation time is used and the cut is made before each issue’s comments and links are read.
  • A dry run and a real run both print limited to N of M, where M is how many the selection matched before the cut (for a list of keys, how many keys). The not carried across list is unchanged.
  • The issues come back oldest first whichever end was chosen, so they land on the target in creation order.
  • The limit applies to what is read from the source. A second run with the same limit selects the same issues, and any that already exist on the target are skipped as in any second run. To continue, run again with a larger --limit, or without one.
Terminal window
holocron migrate project v5 --from github --to linear:team=ENG --limit 10 --dry-run
holocron migrate issues --all --from github --to linear:team=ENG --limit 25 --order newest --open-only

When the target is GitHub, migrate project <name> --to github puts the issues on a GitHub Project of the same name. The board is found by name among the open boards, or made from the template (roadmap unless --template names a built-in or a file in .holocron/projects/). Each migrated issue, including one an earlier run made, is added to the board (addProjectV2ItemById, with the issue’s node id), then:

  • Status is the board option named like the source status, or else the template’s status for the source status category (In Progress to active, an open issue to planned, a closed one to done).
  • Priority is the option whose name is urgent, high, medium or low (or P0 to P3). The built-in roadmap template names its priorities 1 · Now, 2 · Next and 3 · Process, so a board made from it has no option for them; add urgent to P3 options to your own template to carry priority.

A status or priority with no matching option is listed under not carried across and is never created, and a value an item already has is never changed, so running it twice sets nothing twice. The milestone is set only when --milestone is given; it is no longer implied by the board name. A target with no projects provider (Linear, or a GitHub token without the Projects permission) keeps the earlier behaviour: the issues land in a milestone or project named like the board.

Title, description, labels, priority, state (by name, then by category), assignee (where it can be matched), milestone or project, parent, blocked-by, comments (oldest first, with the author named in the text) and the original created date.

Two trackers never hold the same things. Each run ends with a not carried across list, one line per loss with the number of issues it hit; run with --dry-run first to see it before anything is written. The per-provider differences are in the Linear plugin page. Effort and the start and target dates travel too; see Effort and dates.

Each target records the source address (a holocron:migrated-from marker on GitHub, an attachment on Linear), so a second run skips what the first made. An interrupted run is finished by running it again.

To keep the target up to date afterwards, with updates and new comments, use sync issues; migrate only creates.

A provider takes part by implementing the optional export and import methods of the issues capability.