pr-title-checker icon indicating copy to clipboard operation
pr-title-checker copied to clipboard

Different checks based on branch

Open jakeleventhal opened this issue 1 year ago • 2 comments
trafficstars

There should be a way to have checks per-branch

Meaning if targeting develop, check X If targeting master, check Y

jakeleventhal avatar Nov 30 '23 19:11 jakeleventhal

Do you think this can be done with if statements in the yaml file to provide different configuration paths for different branches?

thehanimo avatar Dec 05 '23 16:12 thehanimo

I suppose this solution works, but modifyign the config to support key/value of regex branch mapping would be ideal

// old
{ <config> }

// new
{
  default: <config>
  overrides: {
    [regex1]: {overrides},
    [regex2]: {overrides}
  }
}

jakeleventhal avatar Dec 05 '23 17:12 jakeleventhal