-
Notifications
You must be signed in to change notification settings - Fork 8
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
A very quick implementation of fail on labels #91
base: master
Are you sure you want to change the base?
Conversation
b542880
to
57a97f5
Compare
Would be nice to show example config file with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me, just minor comments
@@ -0,0 +1,37 @@ | |||
from loguru import logger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol, best package name :)
|
||
from baldrick.plugins.github_pull_requests import pull_request_handler | ||
|
||
BLOCKED_MESSAGE = 'This pull request is blocked from being merged by labels.' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we have the name of the label, that triggered this, listed, too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or all of them that triggers this in a repo? (I don't expect all maintainers to always know about this feature)
pass_message = bl_config.get("label_absent_message", MERGEABLE_MESSAGE) | ||
|
||
pr_labels = set(pr_handler.labels) | ||
blocking_labels = set(cl_config.get('labels', []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blocking_labels = set(cl_config.get('labels', []) | |
blocking_labels = set(cl_config.get('blocking_labels', []) |
to remove ambiguity
@bsipocz
Fixes #90