I’m using go with the go-gihub library and managed to list some releases from an example repo shown in the code below. Next step is to use the json response and watch the for new releases however the type from the response cannot be unmarshalled?
package main
import (
"context"
"fmt"
"github.com/google/go-github/github"
)
func main() {
fmt.Println("start")
client := github.NewClient(nil)
opt := &github.ListOptions{Page: 2, PerPage: 10}
ctx := context.Background()
rls, resp, err := client.Repositories.ListReleases(ctx, "prometheus-community", "helm-charts", opt)
if err != nil {
fmt.Println(err)
}
fmt.Println("contents of rls:", rls)
fmt.Println("contents of resp:", resp)
}