Hi everyone, looking to force PRs for any commit including a certain file path. Have been messing around with pre-hooks, but any condition I add also blocks PRs... Here is what I have right now:
if (pathsMatchExcludingDeletes('glob:something.yml')) {
return false
}
return true
Is there something I can add to this condition that ignores the commit if it's a PR?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.