func (b *bot) StartPolling() {
	b.ready()
	return
	if !b.cfg.CherryPick && !b.cfg.LabelCheck {
		return
	}
	b.fetchDuration(30 * 24 * time.Hour)
	b.ready()
	util.Println(b.owner, "/", b.repo, "ready")
	duration := time.Duration(b.interval) * time.Millisecond
	fullupdateInterval := time.Duration(b.fullupdateInterval) * time.Millisecond
	nextFetch := time.Now().Add(duration)
	nextFullupdate := time.Now().Add(fullupdateInterval)
	tick := time.Tick(time.Second)
	go func() {
		for {
			select {
			case t := <-tick:
				if t.After(nextFetch) {
					nextFetch = nextFetch.Add(duration)
					b.fetchLatest()
				}
				if t.After(nextFullupdate) {
					nextFullupdate = nextFullupdate.Add(fullupdateInterval)
					b.fetchDuration(7 * 24 * time.Hour)
				}
			}
		}
	}()
}
StartPolling init the polling job of a repository
package bot
import (
	"context"
	"time"
	"github.com/pingcap-incubator/cherry-bot/pkg/types"
	"github.com/pingcap-incubator/cherry-bot/util"
	"github.com/google/go-github/v32/github"
	"github.com/jinzhu/gorm"
	"github.com/pkg/errors"
)
const (
	perPage      = 100
	maxRetryTime = 1
)