fix(label): keep exclusive and archived flags in label export

label export wrote "#7057ff good first issue ;" with a dangling separator
and dropped the exclusive and archived flags, so an export and re-import
lost them. Rows now omit an empty description and end in " ;exclusive",
" ;archived" or both when a label has those flags; label create --file
reads them back.

Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
bircni committed 2026-10-12 00:14:52 +02:00
1 parent 8e5289149c
commit b892423545
3 files changed
+64 -5

No files matched your search

+1 -1
View File
@@ -42,7 +42,7 @@ func TestLabelExportReadsAllPagesAndPublishesOnlyCompleteFiles(t *testing.T) {
require.Equal(t, []string{"1", "2", "3"}, pages)
data, err := os.ReadFile(output)
require.NoError(t, err)
require.Equal(t, "#ff0000 good first issue ;Help wanted\n#00ff00 bug ;\n", string(data))
require.Equal(t, "#ff0000 good first issue ;Help wanted\n#00ff00 bug\n", string(data))
require.NoError(t, os.Remove(output))
fail = true
require.Error(t, Execute(context.Background(), deps, args))