new func to get repo config