-
Notifications
You must be signed in to change notification settings - Fork 15
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
labelling merge build #214
Comments
Also mentioned:
|
At the moment, the contract of the merge command is to select Pull Requests/branches if they match any of the specified include filter and do no match any of the specified excluded filter i.e. it's actually a combination of OR and AND logic as in
means
The implementation is done in https://github.com/openmicroscopy/snoopycrimecop/blob/v0.6.7/scc/git.py#L857 for the accepted filter types (user, label and pr). Being able to switch to combine filters using AND unconditionally is something that could be investigated but I am still unclear on how one would specify it at the command line and the impact on all combinations. Note some of our current workflows actively rely on the selection contract above e.g. to include both PRs from the organization and external PRs included via label. The other option means no modification of the filtering contract but rather add new semantics to the filter values to define:
With regard to implementation the latter proposal would involve extending the |
If you kept the current semantics and syntax but added a switch to choose whether include/exclude has priority like the Apache 2.2 |
@aleksandra-tarkowska did some more testing and it looks like
would meet most of her requirements. The only remaining issue is that the "label via comment" functionality re-uses the I see two options:
|
I think the above doesnt respect So here is how I would use it in a CI:
As we go toward devspace, keep in mind that above would need to be applied in CI master in a first place, to make sure labelled PRs are not included. As we are all familiar with the usage of exclude and breaking I think these flags could be respected as well, so even developing feature you can run 2 devspaces one (breaking and merge separately). We could argue that someone can just add Please correct if I am missing anything. If you think it is possible, could you please provide example. I am happy to test. |
It would be very handy to optionally narrow down how scc handles labels to merge PRs. At the moment filters based on union, would be very useful to apply intersection. This would be useful in a case where someone would like to test PR in isolation (read devspace).
Initial discussion:
-Iuser:#org -Elabel:!xyz
(suggested)-I label:xyz (AND|OR) -I label:xyz
(more complicated)The text was updated successfully, but these errors were encountered: