INNER CODE UNIT · Go

main

zopdev/helm-charts · charts-lint/main.go:19

func main() {
	// get client for GitHub
	c, err := utils.GetGithubClient()
	if err != nil {
		panic(err)
	}

	client := githubpkg.New(c.PullRequests)

	// Get charts changed in the current PR
	changedCharts, err := client.GetDiff()
	if err != nil {
		panic(err)
	}

	// early exit for no updated charts
	if len(changedCharts) == 0 {
		fmt.Println("No charts updated.")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…