auto repository detect feature