detect if rebase action is allowed