func init() {
	clock := util.RealClock{}
	sq := &SubmitQueue{
		clock:          clock,
		lastMergeTime:  clock.Now(),
		lastE2EStable:  true,
		prStatus:       map[string]submitStatus{},
		lastPRStatus:   map[string]submitStatus{},
		githubE2EQueue: map[int]*github.MungeObject{},
	}
	RegisterMungerOrDie(sq)
	RegisterStaleComments(sq)
}
Exemple #2
0
func init() {
	clock := util.RealClock{}
	sq := &SubmitQueue{
		clock:          clock,
		lastMergeTime:  clock.Now(),
		lastE2EStable:  true,
		prStatus:       map[string]submitStatus{},
		lastPRStatus:   map[string]submitStatus{},
		githubE2EQueue: map[int]*github.MungeObject{},
	}
	RegisterMungerOrDie(sq)
	registerShouldDeleteCommentFunc(sq.isStaleWhitelistComment)
	registerShouldDeleteCommentFunc(sq.isStaleSafeToMergeComment)
}