File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -175,6 +175,15 @@ func FetchPackageDetails(packageName string) (*PackageDetails, error) {
175175 }, nil
176176}
177177
178+ func filter [T any ](ss []T , test func (T ) bool ) (ret []T ) {
179+ for _ , s := range ss {
180+ if test (s ) {
181+ ret = append (ret , s )
182+ }
183+ }
184+ return
185+ }
186+
178187var githubClient * GitHubClient
179188
180189func main () {
@@ -192,6 +201,11 @@ func main() {
192201 log .Fatalf ("Failed to decode package list: %v" , err )
193202 }
194203
204+ var packageNameBlacklist = []string {"tinect/platform-html-minify" }
205+ packageList .PackageNames = filter (packageList .PackageNames , func (s string ) bool {
206+ return ! slices .Contains (packageNameBlacklist , s )
207+ })
208+
195209 // Initialize the GitHub client
196210 githubClient = & GitHubClient {
197211 HTTPClient : & http.Client {},
You can’t perform that action at this time.
0 commit comments