Example #1
0
// MungePullRequests is the main function which asks that each munger be called
// for each PR
func MungePullRequests(config *config.MungeConfig) error {
	mfunc := func(pr *github_api.PullRequest, issue *github_api.Issue) error {
		return mungePR(config, pr, issue)
	}
	if err := config.ForEachPRDo([]string{}, mfunc); err != nil {
		return err
	}

	return nil
}