Skip to content

Commit dd470d5

Browse files
[MM-979]: review fixes
1 parent a1dbb99 commit dd470d5

File tree

2 files changed

+115
-450
lines changed

2 files changed

+115
-450
lines changed

server/plugin/utils.go

+15
Original file line numberDiff line numberDiff line change
@@ -389,3 +389,18 @@ func lastN(s string, n int) string {
389389

390390
return string(out)
391391
}
392+
393+
func GetMockSubscriptionWithLabel(repo string, feature string) *Subscriptions {
394+
return &Subscriptions{
395+
Repositories: map[string][]*Subscription{
396+
repo: {
397+
{
398+
ChannelID: MockChannelID,
399+
CreatorID: MockCreatorID,
400+
Features: Features(feature),
401+
Repository: MockRepo,
402+
},
403+
},
404+
},
405+
}
406+
}

0 commit comments

Comments
 (0)