renumber
Give an initiative a new number — fixing a number collision after a merge. Renames its file and asset folder (keeping the slug, padded to the collection's width) and rewrites every link and "#" reference to it across the…
Instructions
Give an initiative a new number — fixing a number collision after a merge. Renames its file and asset folder (keeping the slug, padded to the collection's width) and rewrites every link and "#" reference to it across the repo. to defaults to the next number, coined as create does. For one file of a duplicate-number pair, pass ref as its path. dry_run: true returns the plan without writing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The new number; default: the next free one. | |
| ref | Yes | Initiative (ticket/issue): "collection#n" (e.g. "lgm#22"), a bare number, or a path. | |
| dry_run | No | ||
| collection | No |