Skip to content

fix(commands): restore copied item metadata - #58

Merged
kitlangton merged 1 commit into
mainfrom
fix/copy-metadata-maintenance
Sep 2, 2026
Merged

kitlangton merged 1 commit into
mainfrom
fix/copy-metadata-maintenance

Conversation

@kitlangton

Copy link
Copy Markdown
Owner

Why

Copying PR or issue metadata produces only the item summary and URL. The command migration in 2fb320c dropped the existing metadata formatters, silently removing fields users previously received.

What Changes

Reconnect both commands to the existing formatters.

Item Restored Clipboard Fields
Pull request Separate title and repository/number lines, head/base branch, review status, check summary, failing check names
Issue Separate title and repository/number lines, comment count, labels

The PR regression captures branch: fix/metadata -> main, review: approved, checks 2/4, and failing checks: test, build. The issue regression captures 3 comments and labels: bug, clipboard.

Scope

Only command wiring, two real-command regression tests, and a patch changeset. Formatting rules, command gating, and success/error handling remain unchanged. Clipboard verification uses an isolated capturing service, not the system clipboard.

Verification

bun install --frozen-lockfile
bun run test --test-name-pattern 'copy-metadata'
bun run format:check
bun run typecheck
bun run lint
bun run test
bun run test:keymap
bun run changeset:status
git diff --check

Both command regressions failed with the truncated output before the fix and pass afterward. The full suite passes 544 tests; the keymap suite passes 131 tests. Formatting, typechecking, lint, and diff checks pass. Changeset status reports a patch bump only. Package smoke and release commands were not run for this command-only change.

Reuse the existing pull request and issue metadata formatters dropped during the command migration. Cover both real command handlers with isolated dispatch probes and a capturing clipboard service.
@kitlangton
kitlangton merged commit 090a4d5 into main Sep 2, 2026
1 check passed
@kitlangton
kitlangton deleted the fix/copy-metadata-maintenance branch September 2, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant