-
Notifications
You must be signed in to change notification settings - Fork 248
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
Mention linked PRs in "fully signed" comment #2148
Conversation
A new Pull Request was created by @iarspider for branch master. @iarspider, @cmsbuild, @aandvalenzuela, @smuzaffar can you please review it and eventually sign? Thanks. |
cms-bot internal usage |
Pull request #2148 was updated. |
Pull request #2148 was updated. |
Pull request #2148 was updated. |
process_pr.py
Outdated
r = gh.get_repository(linked_pr_repo) | ||
linked_pr = r.get_issue(linked_pr_id) | ||
if linked_pr.state != "closed": | ||
linked_pr.create_comment( |
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.
@iarspider , only call to create_comment
should be under not dryRun
condition
process_pr.py
Outdated
+ ", and should probably be merged together with it" | ||
) | ||
messageFullySigned += (", " if prepend_comma else "") + linked_pr | ||
prepend_comma = True |
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.
@iarspider , what if all the other PRs are merged/closed? Shouldn' we first check if there are any PRs which are still only and then add the **Notice** This ....
in to messageFullySigned
?
@iarspider , I tried this code for cms-sw/cmssw#43719 and get this error
|
Pull request #2148 was updated. |
Latest changes (7886d90) not tested yet... |
Pull request #2148 was updated. |
Pull request #2148 was updated. |
REMINDER @rappoccio, @antoniovilela, @sextonkennedy: This PR was tested with cms-sw/cmssw#43719, please check if they should be merged together |
looks good @cms-sw/orp-l2 , once this is merged then bot will add extra message like
e.g. see cms-sw/cmssw#43719 (comment) . Hopefully this will help you merging external PRs (e.g. cms-data PRs) |
@smuzaffar
is_hold
is necessary - always mention linked PRs?