Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Require PR for specific file

Daniel Schneider
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 8, 2020

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?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events