diff --git a/.changeset/at-sign-branches.md b/.changeset/at-sign-branches.md deleted file mode 100644 index eee347b6..00000000 --- a/.changeset/at-sign-branches.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -`worktree branch`, `worktree rename` and `worktree config --user defaultSourceBranch` now accept a branch name containing `@`, such as `user@fix`. Only the sequence `@{`, which git forbids, and the name `@` on its own, which git reads as HEAD, are refused. diff --git a/.changeset/brace-branches.md b/.changeset/brace-branches.md deleted file mode 100644 index 02e67773..00000000 --- a/.changeset/brace-branches.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -`worktree branch`, `worktree rename` and `worktree config --user defaultSourceBranch` now accept a branch name containing `{`, such as `a{b`. Only the sequence `@{`, which git forbids, is refused. diff --git a/.changeset/brave-homes-wander.md b/.changeset/brave-homes-wander.md deleted file mode 100644 index ebde3082..00000000 --- a/.changeset/brave-homes-wander.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -`worktree config --user ` now works from a directory that is not a git repository, such as your home directory, instead of failing with `fatal: not in a git directory`. diff --git a/.changeset/calm-numbers-group.md b/.changeset/calm-numbers-group.md deleted file mode 100644 index b74223e5..00000000 --- a/.changeset/calm-numbers-group.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": minor ---- - -`worktree cleanup` now formats the counts in its headings for your system locale, so 12345 prints as 12,345 or 12.345. diff --git a/.changeset/clickup-api-settings-label.md b/.changeset/clickup-api-settings-label.md deleted file mode 100644 index 2ec2395f..00000000 --- a/.changeset/clickup-api-settings-label.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -`worktree config` now tells you to find your ClickUp personal API token under Settings -> ClickUp API -> API Token. It pointed at Settings -> Apps, which ClickUp's settings no longer has. diff --git a/.changeset/dash-source-branch.md b/.changeset/dash-source-branch.md deleted file mode 100644 index e017efd5..00000000 --- a/.changeset/dash-source-branch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -A `defaultSourceBranch` that starts with `-`, for example from a `.worktree.yml` committed to a repository, is now passed to `git worktree add` as a branch name rather than read by git as an option. diff --git a/.changeset/hidden-assignee-left-alone.md b/.changeset/hidden-assignee-left-alone.md deleted file mode 100644 index 115d8b49..00000000 --- a/.changeset/hidden-assignee-left-alone.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -`worktree branch --jira KEY --assign` no longer replaces a colleague's assignment when the issue's project leaves Assignee out of its field scheme. Jira then hides the assignee from the read, so `worktree` cannot tell a free issue from a held one: it warns, leaves the issue alone and still creates the worktree, and `assigned` is `false`. diff --git a/.changeset/jira-html-error-page.md b/.changeset/jira-html-error-page.md deleted file mode 100644 index 17b3be59..00000000 --- a/.changeset/jira-html-error-page.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -A failed Jira request answered with an HTML error page, such as a proxy's 502 or 503 page, no longer pastes the whole page into the error. `worktree` now gives the status and names the host that answered. A JSON or plain-text error from Jira is still shown. diff --git a/.changeset/linear-issue-state-filter.md b/.changeset/linear-issue-state-filter.md deleted file mode 100644 index 259d8811..00000000 --- a/.changeset/linear-issue-state-filter.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -`worktree list --issues` and `worktree cleanup` now read the state of every Linear issue instead of showing most as `state unknown`. Linear ignored the filter `worktree` sent for the batch, so a canceled issue's worktree was rarely offered for removal. diff --git a/.changeset/loud-ignored-file.md b/.changeset/loud-ignored-file.md deleted file mode 100644 index 6b119857..00000000 --- a/.changeset/loud-ignored-file.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -A `.worktree.yml` in your worktree is no longer ignored without a word when your default branch has none. `worktree` now warns that the file is not in use and names `WORKTREE_PROJECT_CONFIG` for trying it. diff --git a/.changeset/offer-skips-existing-copy.md b/.changeset/offer-skips-existing-copy.md deleted file mode 100644 index cf749940..00000000 --- a/.changeset/offer-skips-existing-copy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -`worktree branch` and `worktree config` no longer offer to write a `.worktree.yml` when your worktree already has one. The offer used to say the repository had no file, fail to write over yours, and still count as accepted so it was never made again. diff --git a/.changeset/plain-branches-travel.md b/.changeset/plain-branches-travel.md deleted file mode 100644 index 904db2d0..00000000 --- a/.changeset/plain-branches-travel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -`worktree config --user defaultSourceBranch ` now works from a directory that is not a git repository, and accepts a branch that exists in other repositories but not the current one. It checks the branch name's syntax only, since the user file is a fallback for every repository. diff --git a/.changeset/plain-symbols-redirected.md b/.changeset/plain-symbols-redirected.md deleted file mode 100644 index 65079308..00000000 --- a/.changeset/plain-symbols-redirected.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -A spinner's ✔, ✖ and ⚠ are now plain text when stderr is redirected to a file or a pipe; they used to leave colour escape codes in it. diff --git a/.changeset/plain-text-no-color.md b/.changeset/plain-text-no-color.md deleted file mode 100644 index 9f626524..00000000 --- a/.changeset/plain-text-no-color.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -`worktree` now prints no colour or bold when `NO_COLOR` is set: check marks, headings, warnings and the spinner used to ignore it, while setting `FORCE_COLOR` still turns colour on. diff --git a/.changeset/portable-type-dry-run.md b/.changeset/portable-type-dry-run.md deleted file mode 100644 index 79b571a2..00000000 --- a/.changeset/portable-type-dry-run.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -`worktree branch --dry-run` no longer warns "Check the spelling, or use the field's id" when a shared `branchType` rule names the portable `Type` or `Labels` and the provider does not offer it, such as `Type` on ClickUp and Linear. A misspelt field in the shared list still warns on a dry run. diff --git a/.changeset/quiet-fields-drop.md b/.changeset/quiet-fields-drop.md deleted file mode 100644 index 27716076..00000000 --- a/.changeset/quiet-fields-drop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -On Jira Data Center, `worktree branch --jira` no longer offers the `Environment` field or the bundled `Development` field as rule values. Both used to print into the dry run, `Development` as a 3 KB Java string that could never match a rule, and `Environment` as text that matches on Data Center but never on Cloud. A rule you already wrote on `environment` now matches nothing on Data Center. diff --git a/.changeset/quiet-keys-vanish.md b/.changeset/quiet-keys-vanish.md deleted file mode 100644 index bf0ee79e..00000000 --- a/.changeset/quiet-keys-vanish.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": minor ---- - -`worktree branch` and `worktree config` now remove, without asking, the local git config keys that the `.worktree.yml` on your default branch already sets to the same value. A key stays where removing it would change what `worktree` does: one another git config scope also sets, a `postCreate` whose step you have not approved, and a `defaultSourceBranch` when there is no `origin/HEAD`. diff --git a/.changeset/quiet-pipes-listen.md b/.changeset/quiet-pipes-listen.md deleted file mode 100644 index 309dcef8..00000000 --- a/.changeset/quiet-pipes-listen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -`worktree branch --agent-stdin` now reads the piped brief when the branch comes from an issue flag (`--linear`, `--github`, `--jira`, `--clickup`) instead of failing with "The agent brief from --agent-stdin is empty", so `worktree linear-listen` delegations start their agent. diff --git a/.changeset/quiet-tasks-unseen.md b/.changeset/quiet-tasks-unseen.md deleted file mode 100644 index fc01c43e..00000000 --- a/.changeset/quiet-tasks-unseen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -A ClickUp task that does not exist, or that your token cannot see, is no longer reported as an authentication failure. `worktree` now says it could not find the task, or that the token cannot see it, and quotes ClickUp's own explanation. A rejected token still reports `Authentication failed`. diff --git a/.changeset/scrum-in-progress-wins.md b/.changeset/scrum-in-progress-wins.md deleted file mode 100644 index 7e1725f0..00000000 --- a/.changeset/scrum-in-progress-wins.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -`--start` (and `jira.autoStart`) now moves an issue in a default Jira Cloud Scrum project, which offers both In Progress and In Review from To Do. When Jira offers more than one in-progress status, `worktree` takes the one named "In Progress"; with several and none so named it still writes nothing and tells you to move the issue in Jira. A non-interactive `--jira` run with `jira.autoStart` unset now moves these issues too; pass `--no-start` or set `jira.autoStart false` to keep them where they are. diff --git a/.changeset/sso-gateway-sign-in-page.md b/.changeset/sso-gateway-sign-in-page.md deleted file mode 100644 index 489a4b44..00000000 --- a/.changeset/sso-gateway-sign-in-page.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": patch ---- - -A Jira site behind an SSO gateway no longer fails with a raw JSON parse error. When the gateway answers an API call with its sign-in page, `worktree` now says that Jira's host answered with a web page, not the API, and names the host it was redirected to. diff --git a/.changeset/user-config-file.md b/.changeset/user-config-file.md deleted file mode 100644 index 114cb539..00000000 --- a/.changeset/user-config-file.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@northguild/worktree": minor ---- - -Personal defaults such as `codeEditor`, `opener` and `agent.command` can now live once in `~/.config/worktree/config.yml`, written with `worktree config --user `; `worktree config --list` shows which source each value comes from. diff --git a/CHANGELOG.md b/CHANGELOG.md index a109080b..e2d83f50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,35 @@ # @northguild/worktree +## 3.1.0 + +### Minor Changes + +- 8300699: `worktree cleanup` now formats the counts in its headings for your system locale, so 12345 prints as 12,345 or 12.345. +- 63946fd: `worktree branch` and `worktree config` now remove, without asking, the local git config keys that the `.worktree.yml` on your default branch already sets to the same value. A key stays where removing it would change what `worktree` does: one another git config scope also sets, a `postCreate` whose step you have not approved, and a `defaultSourceBranch` when there is no `origin/HEAD`. +- aba61a2: Personal defaults such as `codeEditor`, `opener` and `agent.command` can now live once in `~/.config/worktree/config.yml`, written with `worktree config --user `; `worktree config --list` shows which source each value comes from. + +### Patch Changes + +- 705093f: `worktree branch`, `worktree rename` and `worktree config --user defaultSourceBranch` now accept a branch name containing `@`, such as `user@fix`. Only the sequence `@{`, which git forbids, and the name `@` on its own, which git reads as HEAD, are refused. +- ba39368: `worktree branch`, `worktree rename` and `worktree config --user defaultSourceBranch` now accept a branch name containing `{`, such as `a{b`. Only the sequence `@{`, which git forbids, is refused. +- 89f6025: `worktree config --user ` now works from a directory that is not a git repository, such as your home directory, instead of failing with `fatal: not in a git directory`. +- 56fe5e8: `worktree config` now tells you to find your ClickUp personal API token under Settings -> ClickUp API -> API Token. It pointed at Settings -> Apps, which ClickUp's settings no longer has. +- 2e2ce2c: A `defaultSourceBranch` that starts with `-`, for example from a `.worktree.yml` committed to a repository, is now passed to `git worktree add` as a branch name rather than read by git as an option. +- 97a2986: `worktree branch --jira KEY --assign` no longer replaces a colleague's assignment when the issue's project leaves Assignee out of its field scheme. Jira then hides the assignee from the read, so `worktree` cannot tell a free issue from a held one: it warns, leaves the issue alone and still creates the worktree, and `assigned` is `false`. +- 6bc8cec: A failed Jira request answered with an HTML error page, such as a proxy's 502 or 503 page, no longer pastes the whole page into the error. `worktree` now gives the status and names the host that answered. A JSON or plain-text error from Jira is still shown. +- 29bd470: `worktree list --issues` and `worktree cleanup` now read the state of every Linear issue instead of showing most as `state unknown`. Linear ignored the filter `worktree` sent for the batch, so a canceled issue's worktree was rarely offered for removal. +- f39cc8a: A `.worktree.yml` in your worktree is no longer ignored without a word when your default branch has none. `worktree` now warns that the file is not in use and names `WORKTREE_PROJECT_CONFIG` for trying it. +- e64f632: `worktree branch` and `worktree config` no longer offer to write a `.worktree.yml` when your worktree already has one. The offer used to say the repository had no file, fail to write over yours, and still count as accepted so it was never made again. +- 231b242: `worktree config --user defaultSourceBranch ` now works from a directory that is not a git repository, and accepts a branch that exists in other repositories but not the current one. It checks the branch name's syntax only, since the user file is a fallback for every repository. +- adf0e22: A spinner's ✔, ✖ and ⚠ are now plain text when stderr is redirected to a file or a pipe; they used to leave colour escape codes in it. +- 8c7cf24: `worktree` now prints no colour or bold when `NO_COLOR` is set: check marks, headings, warnings and the spinner used to ignore it, while setting `FORCE_COLOR` still turns colour on. +- 282c0f6: `worktree branch --dry-run` no longer warns "Check the spelling, or use the field's id" when a shared `branchType` rule names the portable `Type` or `Labels` and the provider does not offer it, such as `Type` on ClickUp and Linear. A misspelt field in the shared list still warns on a dry run. +- 0834ca6: On Jira Data Center, `worktree branch --jira` no longer offers the `Environment` field or the bundled `Development` field as rule values. Both used to print into the dry run, `Development` as a 3 KB Java string that could never match a rule, and `Environment` as text that matches on Data Center but never on Cloud. A rule you already wrote on `environment` now matches nothing on Data Center. +- d359982: `worktree branch --agent-stdin` now reads the piped brief when the branch comes from an issue flag (`--linear`, `--github`, `--jira`, `--clickup`) instead of failing with "The agent brief from --agent-stdin is empty", so `worktree linear-listen` delegations start their agent. +- 1aca6a1: A ClickUp task that does not exist, or that your token cannot see, is no longer reported as an authentication failure. `worktree` now says it could not find the task, or that the token cannot see it, and quotes ClickUp's own explanation. A rejected token still reports `Authentication failed`. +- 689d11a: `--start` (and `jira.autoStart`) now moves an issue in a default Jira Cloud Scrum project, which offers both In Progress and In Review from To Do. When Jira offers more than one in-progress status, `worktree` takes the one named "In Progress"; with several and none so named it still writes nothing and tells you to move the issue in Jira. A non-interactive `--jira` run with `jira.autoStart` unset now moves these issues too; pass `--no-start` or set `jira.autoStart false` to keep them where they are. +- b2af49a: A Jira site behind an SSO gateway no longer fails with a raw JSON parse error. When the gateway answers an API call with its sign-in page, `worktree` now says that Jira's host answered with a web page, not the API, and names the host it was redirected to. + ## 3.0.0 ### Major Changes diff --git a/docs/src/lib/site-meta.ts b/docs/src/lib/site-meta.ts index fd39aef8..9be286f2 100644 --- a/docs/src/lib/site-meta.ts +++ b/docs/src/lib/site-meta.ts @@ -1,6 +1,6 @@ // Generated file. Do not edit directly. -export const cliVersion = "3.0.0"; +export const cliVersion = "3.1.0"; export const projectName = "Worktree"; export const projectDescription = "A CLI tool for managing git worktrees with enhanced workflow features"; diff --git a/package.json b/package.json index eed3d83b..55b71adc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@northguild/worktree", - "version": "3.0.0", + "version": "3.1.0", "description": "A CLI tool for managing git worktrees with enhanced workflow features", "main": "./bin/run.js", "type": "module",