Update template and style, only close commit if commit is in same repository