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
pull-request-labeler
misbehaving and therefore disabled again
#19088
Comments
Happy to take this! It doesn't look like there is a configuration input for disabling the labelling process after a maintainer or someone with the right permissions has removed specific labels on an issue or a PR. Should I remove them or try @j-bowhay's suggestion in #17116 (comment)? There is also a |
Hi @agriyakhetarpal thanks for helping us. Currently, it is not providing too much of value for us since labeling is rather the easier part of our work and has no consequence if we forget it. Also it is typically not doing what we hoped that it would do occasionally going rogue as above. If you know how to tame it and make it less aggressive we would all appreciate it. Especially if reverted changes can be reflected that would be really nice. If it is a lost cause, I think we are also OK to remove it completely. |
I will try a few things on a fork of SciPy and link those items here if I can get to something—otherwise I shall remove the implementation in a PR. Thanks, @ilayn! |
Hi, @rgommers and @ilayn: based on the discussion in #17116 and now that the syncing issue actions/labeler#112 has been fixed in the new v4 release of actions/labeler, I would suggest getting back to using that instead of
pull_request_target:
types: [opened, reopened] This would ensure that the bot adds the labels based on the commit at the time of opening a PR and would not run at all after that regardless of whether the
${{ !contains( github.event.pull_request.labels.*.name, 'reviewed') }} and use this condition to check for a particular label, say, "reviewed" in this case, and skip the job if the label is found. One more way of doing the same thing, perhaps cleaner, would be via pull_request_target:
types: [unlabeled] which would make the labeler run on unlabeled PRs and make it not run upon further activity since the PR would already have been labeled by itself, in some parasitic sort of fashion. However, this would mean that at least one label should remain on the PR. The "reviewed" label is just an example, it could as well be one of these "scipy.*" labels if a new label is not to be added to the repository
Thanks for the patience for letting me get back on this and apologies for the delay caused. I have presented multiple potential solutions wherein some of them should provide a failsafe even if Footnotes |
Hi @agriyakhetarpal! IMO, it would be great if you could open a PR for this with the
Sounds good.
It looks like the default is Feel free to ping me on the PR once it is open! |
See scipy#19088. These permissions are moved from the level of the workflow to that of the job for security reasons, since this workflow uses the `pull_request_target` event. [skip cirrus] [skip circle]
As per the discussion in scipy#19088 [skip circle] [skip cirrus]
See scipy#19088 [skip cirrus] [skip circle]
See scipy#19088 [skip cirrus] [skip circle] Co-authored-by: Jake Bowhay <60778417+j-bowhay@users.noreply.github.com>
…low (#19728) * MAINT, ENH: move labeler permissions to the level of the job See #19088. These permissions are moved from the level of the workflow to that of the job for security reasons, since this workflow uses the `pull_request_target` event. --------- Co-authored-by: Jake Bowhay <60778417+j-bowhay@users.noreply.github.com>
I cannot find back the previous discussion on this, but this bot is misbehaving again (see screenshot below). I believe the deal was that we'd remove it if it did this again, since it is not okay for it to override maintainer actions. I disabled it manually for now; if someone wants to tweak it once more I'm okay with that, but I'd personally prefer if we just got rid of it.
The text was updated successfully, but these errors were encountered: