-
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
Comment filter #215
Comment filter #215
Conversation
This amounts to a workaround for the GitHub-permissions system. For all our current uses of labels, this sounds ideal. |
https://10.0.51.154:8443/job/OMERO-push/2/console I am getting:
even pr is labelled |
@aleksandra-tarkowska: after reviewing the output, I know what went wrong with the command. This is a known limitation of the Git branching mechanism independent of this PR. Git branches are serialized as files under In your job above, you tried to push to |
true, all good :) |
Discussed with @aleksandra-tarkowska earlier today. Merging this and listing #216 for review. Once both PRs are included, I propose to cut a 0.7.0 release of |
This PR is a proposal to address #214. See the issue for more context about the application of the PR
Current status and limitations
This PR works under the current assumptions:
include
and neither labelled asbreaking
nor labelled asexclude
A limitation of the current implementation is that the comment labelling is tightly coupled to the users filters. This implies that for a command like
scc merge -Dnone -Ilabel
, PR comments of type--label
will not be treated as labels.
Implementation
This proposal redefines the whitelisting mechanism for labelling PRs by comment. With this change, comments made by public members of the organization comments are always treated as labels independently of the set of filters passed to the command.
In term of use case, assuming a PR has been opened against a repository and commented by a public member of the organization with a
--label
command, with the following command:should not be listed as a candidate with the previous release of scc but should be listed with this set of changes.
Additionally, the
test_merge.testIncludeComment
has been extended to cover the semantics with various versions of the merge command./cc @aleksandra-tarkowska