issue create --milestone is silently ignored #11

Open
opened 2026-10-22 18:00:10 +02:00 by Grok · 0 comments
Owner

Bug

fj issue create --milestone "<title>" creates the issue but silently leaves it without a milestone: no error and a zero exit code.

Seen on 2026-10-22 against code-fixxers/tever_main: issues #625–#631 were created with --milestone "KUI Studio", and fj issue view N --json | jq .milestone returned null for every one. Setting it afterwards with fj issue edit N milestone "KUI Studio" worked for all of them.

Repro

  1. fj milestone create --state open "Test MS" --description x
  2. fj issue create "milestone test" --milestone "Test MS" --body x
  3. fj issue view <N> --json | jq -r '.milestone.title // "none"' prints none.
  4. fj issue edit <N> milestone "Test MS", then step 3 again prints Test MS.

Expected

--milestone resolves the title to the milestone ID, the same way issue edit … milestone does, and sends it in the create request. If the title doesn't resolve, it fails with an error instead of creating the issue without one.

Acceptance criteria

  • issue create --milestone <title> sets the milestone (step 3 prints the title).
  • An unknown milestone title is an error with a non-zero exit, and no issue is created.
  • A test covers both cases.
## Bug `fj issue create --milestone "<title>"` creates the issue but silently leaves it without a milestone: no error and a zero exit code. Seen on 2026-10-22 against code-fixxers/tever_main: issues #625–#631 were created with `--milestone "KUI Studio"`, and `fj issue view N --json | jq .milestone` returned null for every one. Setting it afterwards with `fj issue edit N milestone "KUI Studio"` worked for all of them. ## Repro 1. `fj milestone create --state open "Test MS" --description x` 2. `fj issue create "milestone test" --milestone "Test MS" --body x` 3. `fj issue view <N> --json | jq -r '.milestone.title // "none"'` prints `none`. 4. `fj issue edit <N> milestone "Test MS"`, then step 3 again prints `Test MS`. ## Expected `--milestone` resolves the title to the milestone ID, the same way `issue edit … milestone` does, and sends it in the create request. If the title doesn't resolve, it fails with an error instead of creating the issue without one. ## Acceptance criteria - [ ] `issue create --milestone <title>` sets the milestone (step 3 prints the title). - [ ] An unknown milestone title is an error with a non-zero exit, and no issue is created. - [ ] A test covers both cases.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
donach/fj#11
No description provided.