Skip to content

Commit 8c1876c

Browse files
authored
Update release version list API to support modules release pattern (#6199)
Signed-off-by: khanhtc1202 <[email protected]>
1 parent 1a38e78 commit 8c1876c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/app/server/grpcapi/web_api.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,6 +1953,12 @@ func (a *WebAPI) ListReleasedVersions(ctx context.Context, req *webservice.ListR
19531953
if *release.Prerelease || *release.Draft {
19541954
continue
19551955
}
1956+
// Ignore module's release.
1957+
// Eg. pkg/app/pipedv1/plugin/kubernetes/v0.1.0
1958+
if !semver.IsValid(*release.TagName) {
1959+
continue
1960+
}
1961+
19561962
versions = append(versions, *release.TagName)
19571963
}
19581964

0 commit comments

Comments
 (0)