func mungePR(config *github_util.Config, pr *github_api.PullRequest, issue *github_api.Issue) error { if pr == nil { fmt.Printf("found nil pr\n") } commits, err := config.GetFilledCommits(*pr.Number) if err != nil { return err } events, err := config.GetAllEventsForPR(*pr.Number) if err != nil { return err } for _, munger := range mungers { munger.MungePullRequest(config, pr, issue, commits, events) } return nil }