Ejemplo n.º 1
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)
	RegisterStaleComments(sq)
}
Ejemplo n.º 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)
}