Release Notes
Changed
- Official releases are installed and updated from the Homebrew tap
(brew install Liewzheng/tap/pbotcli once, then brew upgrade pbotcli). A
cargo install / make install build of a checkout is a throwaway test build
for exercising a branch — remove it with cargo uninstall pbotcli-cli when the
branch is done, so the released pbotcli stays the only one on PATH.
pbot doc subcommands now require -p/--project. list, create, update,
archive, and delete are rejected locally with exit code 5 and a hint naming
the flag instead of sending a request to a workspace-level pages route the
server does not have; show keeps its existing behaviour of attempting the
lookup and turning the 404 into the same hint. That includes the --dry-run
previews of create and update, which used to print a plan without -p for
an action that could never have run. The --help text and the command
reference now say so.
make check runs cargo fmt --all -- --check before clippy and the tests, so
the local gate covers all three checks CI runs; make format-check exposes
that check on its own. AGENTS.md and the CI header now state the two remaining
differences — CI's --locked flags and its macOS/Windows matrix — rather than
claiming a green local run always means a green CI run.
- The review gate treats a report with zero or partial coverage as unreviewed
rather than as a pass, and names the real mechanism: reng skips
CHANGELOG.md and lockfiles, not Markdown.
- AGENTS.md now warns that
gh pr edit --body-file silently no-ops on this repo
(exit 0, nothing written) as well as that gh pr view --comments fails, and
gives the REST call that replaces it plus the re-read that confirms the write.
- The skill's install notes point the soft-link example at the same checkout
path as the clone example, and its "the command is pbot" paragraph no longer
reads as if pbot were an alias of a differently-behaving pbotcli binary.
pbot whoami marks a service-principal credential in its name row:
<name> (service principal), or <name> (SP owned by <owner>) when the
/users/me/ payload names the owning human. A bot token no longer reads like
a person with fields that failed to load; a human credential's rows are
unchanged, and --json still prints the raw payload — the payload gains an
owner key only if the server sends one (it does not today), which is
additive for every credential kind.
- A cross-project lookup (
pbot wi show, pbot wi ls without -p) no longer
fails on the first project the credential cannot read: a project that answers
403 — what a service principal gets on every project it has no grant for — or
404 is skipped, with a warning naming what was left out. Only a project's
work-item read decides that skip: a denial on its states or labels still
aborts, rather than hiding readable items behind a "no read access" warning. A
wi show that then matches nothing lists the skipped projects in its hint.
Failures that are not a per-project denial still abort.
- The skill's member-listing example now spells the command correctly
(pbot user ls): pbot users ls was never a valid subcommand.
Fixed
- A work-item identifier that matches nothing no longer resolves to a different
item: pbot wi show ABC-99 used to return whichever work item happened to
carry that string in its title, and now reports Work item not found (exit
code 3). The write paths that share the resolver (wi update, wi create --parent) reject the same reference without sending a mutating request.
Ordinary name queries keep resolving by substring and fuzzy match, unchanged.
--assignee me under a service-principal token now resolves to that
principal's shadow bot workspace member (svc-<name> (bot), the User row
Plane credits its writes to) instead of the principal's own id, which is not
a member: wi create/wi update/wi assign assignments to me used to be
silently ignored, and wi ls --assignee me used to return an empty list. When
no such member exists the command fails with a hint naming pbot user ls
instead of resolving to nothing, and a service-principal me result reports
what it resolved to — the member's own name and its UUID — on every write and
whenever the filter finds nothing. If the workspace member list is unreadable,
wi ls --assignee fails with a hint while a plain listing still runs with the
member id's first 8 characters in place of assignee names and a warning naming
the denied call — and the list is only read when a listing will actually use it
(an --assignee filter, or rows that carry assignees). A human credential's
me output is unchanged, and an explicit name or UUID prints no identity note.
docs/rust-rewrite.md no longer lists crates.io as a live install channel: the
crate is not published, and the released CLI comes from the Homebrew tap.
Install pbotcli-cli 1.5.1
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/Liewzheng/pbotcli/releases/download/v1.5.1/pbotcli-cli-installer.sh | sh
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/Liewzheng/pbotcli/releases/download/v1.5.1/pbotcli-cli-installer.ps1 | iex"
Install prebuilt binaries via Homebrew
brew install Liewzheng/tap/pbotcli
Download pbotcli-cli 1.5.1