Add logic to checkout & cherry_pick.