func handle(log *logrus.Entry, ghc githubClient, pr *github.PullRequest) error {
	log.Infof("handle")
	if pr.Merged {
		return nil
	}

	org := pr.Base.Repo.Owner.Login
	repo := pr.Base.Repo.Name
	number := pr.Number
	sha := pr.Head.SHA

	verifiable, releaseVersion, err := HasReleaseInPrTitle(log, ghc, string(pr.Title))
	log.Infof("verifiable is %v, commit sha is %q, release version is %v", verifiable, sha, releaseVersion)
	if err != nil {
		return err
	}
	issueLabels, err := ghc.GetIssueLabels(org, repo, number)
	log.Infof("IssueLabels %v ", issueLabels)
	if err != nil {
		return err
	}
	return nil // takeAction(log, ghc, org, repo, number, pr.User.Login, hasLabel, verifiable)
}
// handle checks a Conformance Certification PR to determine if the contents of the PR pass sanity checks.
// Adds a comment to indicate whther or not the version in the PR title occurs in the supplied logs.
handle checks a Conformance Certification PR to determine if the contents of the PR pass sanity checks.
Adds a comment to indicate whther or not the version in the PR title occurs in the supplied logs.
// handle checks a Conformance Certification PR to determine if the contents of the PR pass sanity checks . // Adds a comment to indicate whther or not the version in the PR title occurs in the supplied logs .
func handle(log *logrus.Entry, ghc githubClient, pr *github.PullRequest) error {
	log.Infof("handle")
	if pr.Merged {
		return nil
	}
	org := pr.Base.Repo.Owner.Login
	repo := pr.Base.Repo.Name
	number := pr.Number
	sha := pr.Head.SHA
	verifiable, releaseVersion, err := HasReleaseInPrTitle(log, ghc, string(pr.Title))
	log.Infof("verifiable is %v, commit sha is %q, release version is %v", verifiable, sha, releaseVersion)
	if err != nil {
		return err
	}
	issueLabels, err := ghc.GetIssueLabels(org, repo, number)
	log.Infof("IssueLabels %v ", issueLabels)
	if err != nil {
		return err
	}
	return nil 
}
func handle ( log * logrus . Entry , ghc githubClient , pr * github . PullRequest ) error { log . Infof ( " " ) if pr . Merged { return nil } org := pr . Base . Repo . Owner . Login repo := pr . Base . Repo . Name number := pr . Number sha := pr . Head . SHA verifiable , releaseVersion , err := HasReleaseInPrTitle ( log , ghc , string ( pr . Title ) ) log . Infof ( " " , verifiable , sha , releaseVersion ) if err != nil { return err } issueLabels , err := ghc . GetIssueLabels ( org , repo , number ) log . Infof ( " " , issueLabels ) if err != nil { return err } return nil }
handle checks a Conformance Certification PR to determine if the contents of the PR pass sanity checks.
handle checks a Conformance Certification PR to determine if the contents of the PR pass sanity checks .
// takeAction(log, ghc, org, repo, number, pr.User.Login, hasLabel, verifiable)