fix: normalize issue +list output to use project-level issue numbers #31
Loading…
Reference in New Issue
No description provided.
Delete Branch "fix/issue-list-normalize-ids"
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?
Summary
The issue
+listJSON output was a raw API pass-through, which made the database-levelidfield (e.g.,142625) the most prominent identifier. This is confusing because all other issue commands (+view,+close,+update,+comment) use--numberwhich maps toproject_issues_index(the per-project sequential number shown in the web URL, e.g.,18).Changes
+listoutput now includes anumberfield copied fromproject_issues_indexidfield is renamed todatabase_idto clarify it is the global database primary keyproject_issues_indexfield is preserved for backward compatibilityBefore
After
Test plan
go build ./...passesgo test ./...— all existing tests passgitlink-cli issue +listshowsnumbermatching the web URL