added repo path condition, added secondary issue logic