in internal/changelog/builder.go [266:279]
func FillEmptyPRField(commitHash, owner, repo string, c *github.Client) ([]string, error) {
pr, err := github.FindPR(context.Background(), c, owner, repo, commitHash)
if err != nil {
return []string{}, err
}
prLinks := []string{}
for _, item := range pr.Items {
prLinks = append(prLinks, CreateEventLink("pr", owner, repo, strconv.Itoa(item.PullRequestID)))
}
return prLinks, nil
}