mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
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:
3 files changed
+64
-5
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user