append remote name to issue/PR creation output #28
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
nagonag
nagonag/ignore
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
heiko/fj!28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/4-show-remote"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #4.
Summary
Remote stringfield toapi.Client, populated from the detected git remote innewClient()repo.RemoteName()to surface the resolved remote short nameformatCreated()helper;formatCreatedPRandformatCreatedIssuedelegate to itCreated issue #5 Title on originTest plan
go test ./...passesfj issue createshowsCreated issue #N ... on <remote>in the outputfj pr createshowsCreated PR #N ... on <remote>in the outputfj remote [show]subcommandd8aeecc26840aa926637Review
Issues
Dead commented-out code in
remote.go(must fix)Lines 37 and 58-59 are commented-out dead code that should not be committed:
If the decision was to drop branch from the output, delete those lines.
.git-suffix false positive inremote showWhen the remote is a plain HTTPS URL,
configURLandfjURLdiffer only by the.gitsuffix:This triggers
(git: https://git.schlittermann.de/heiko/fj.git)in the output, which is misleading — stripping.gitis an fj implementation detail, not a meaningful URL conversion. The guard should normalise the.gitsuffix away before comparing.Duplicate
ShortonremoteCmdandremoteShowCmdBoth read
"Show remote information". Suggest"Remote information"for the parentremoteCmdto match the convention of e.g.labelCmd("Manage labels").No test for
remoteShowRunremote.gohas no test coverage. A unit test for the formatting logic (similar toTestFormatCreatedPR_IncludesRemote) would help catch regressions.Minor
Remote stringonapi.Clientis slightly leaky (git concept in HTTP layer) but acceptable given the 20+newClient()call sites.RawURLmirrors logic inDetect— small duplication, different semantics (display vs. parse), acceptable.formatCreatedshared helper inroot.gois clean.Summary
Block on: dead commented-out code and
.git-suffix false positive. The rest is mergeable with minor polish.— 🤖 Generated with Claude Code (claude-sonnet-4-6)