feat(macros): add Tags (#1429)

This commit is contained in:
ze0s 2024-02-26 13:43:39 +01:00 committed by GitHub
parent eb43dadd2f
commit 2bf5993f05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View file

@ -245,6 +245,15 @@ func TestMacros_Parse(t *testing.T) {
want: "FilterID: 1",
wantErr: false,
},
{
name: "test_tags",
release: Release{
Tags: []string{"country", "rock"},
},
args: args{text: "Tags: {{ .Tags }}"},
want: "Tags: country, rock",
wantErr: false,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {