use merge trigger to control when to do merges
now with merge trigger, we can simply decide when to do merges based on it