masukomi / masukomi/git-com

[bug] (minor) when adding an option the updated YAML is reordered

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

when you ask it to add a new option because a modifiable list didn't contain it, then the elements of the updated yaml within each element get completely reordered. It makes for unnecessarily noisy diffs _and_ its frequently a conceptually worse order (or at least harder to read) than the original one.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by adding an option that is missing from a modifiable list, then locate the code path that updates the YAML. Check how ordering changes within each element and verify that the updated YAML preserves the original, more readable order and produces less noisy diffs.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.