Quick test.
docker run -p 8080:8080 registry.hub.docker.com/im7mortal/release-analyzer:latest
curl http://localhost:8080/apache/airflow/bloat\?start=v2.8.3\&end=v2.9.2The fastest way to run it. Is use Dockerfile.
docker build -t release-analyzer:latest . && docker run -p 8080:8080 release-analyzer:latestOr run run.sh
Alternatively, you can compile the Go binary for your operating system using the command:
go build .For now I implemented the simplest asset name matching which satisfies apache(- or _)airflow-(version).tar.gz pattern.
As next step I would use regex for string matching.
for _, asset := range release.Assets {
if strings.HasSuffix(*asset.BrowserDownloadURL, ".tar.gz") &&
!strings.Contains(*asset.BrowserDownloadURL, "source") {
// ...
}
}