Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different checks based on branch #45

Open
jakeleventhal opened this issue Nov 30, 2023 · 2 comments
Open

Different checks based on branch #45

jakeleventhal opened this issue Nov 30, 2023 · 2 comments

Comments

@jakeleventhal
Copy link

There should be a way to have checks per-branch

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

@thehanimo
Copy link
Owner

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

@jakeleventhal
Copy link
Author

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}
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants