-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[ci] Add GitHub Actions bot to merge PRs on demand #10833
Conversation
ea2edd9
to
a47c9f5
Compare
@driazati Thanks! An initial question: for both examples driazati#13 and driazati#17, it seems that the final commit messages that landed were not taken from the PR title/body (are empty?), but that's planned tho (WIP)? |
Ah I could have used better examples, the code strips out the specific text edit: see driazati#16 and driazati@80acd9f |
hmm neat :) |
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.
thanks @driazati couple comments
this one ready for a review? |
yup it's ready for review, let me know if there's any more test cases you'd want to see as well |
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.
cool this is looking pretty good. a few more questions, but i think we're getting close here.
1391d5d
to
8427b3e
Compare
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.
thanks @driazati !
It has been a while since this PR was updated, @Mousius @kparzysz-quic @areusch @gromero please leave a review or address the outstanding comments. @driazati if this PR is still a work in progress, please convert it to a draft until it is ready for review. |
@Mousius can you re-review? |
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.
Minor comments left @driazati, otherwise I think this is getting pretty close 😸
This implements https://discuss.tvm.apache.org/t/rfc-allow-merging-via-pr-comments/12220. The bot can be invoked from a top-level review comment or via a regular PR comment. The text `@tvm-bot merge` anywhere in the body will trigger the bot. Right now it checks that the latest commit is reviewed and that all CI jobs that have run on that commit are successful. If it fails, it will leave a comment on the PR with the reason. This is just a start and some features are left for followups: * Various TODOs throughout the code * "Scheduled" merges that happen once CI finishes * Allowing committers to merge without getting a fresh review for changes after an approval
Apologies for the delay @driazati , this LGTM and I'm glad to see this work finally land 😸 |
This implements https://discuss.tvm.apache.org/t/rfc-allow-merging-via-pr-comments/12220. The bot can be invoked from a top-level review comment or via a regular PR comment. The text
@tvm-bot merge
anywhere in the body will trigger the bot. Right now it checks that the latest commit is reviewed and that all CI jobs that have run on that commit are successful. If it fails, it will leave a comment on the PR with the reason.This is just a start and some features are left for followups:
Test PRs
approved: no, then yes
approved: yes, then PR is updated, then re-approved
cc @areusch @Mousius @gromero @kparzysz-quic