Repository navigation
Open
Description
Hi, it would be great if meeseeksbot could be configured to automerge PRs. I trust my CI system and the fact that it was merged cleanly enough to want to do that.
MeeseeksDev/meeseeksdev/meeseeksbox/commands.py
Lines 1011 to 1027 in bfd704f
| new_pr = session.personal_request( | |
| "POST", | |
| f"https://api.github.com/repos/{org_name}/{repo_name}/pulls", | |
| json={ | |
| "title": f"Backport PR #{prnumber} on branch {target_branch} ({prtitle})", | |
| "body": msg, | |
| "head": f"{session.personal_account_name}:{remote_submit_branch}", | |
| "base": target_branch, | |
| }, | |
| ).json() | |
| new_number = new_pr["number"] | |
| resp = session.ghrequest( | |
| "PATCH", | |
| f"https://api.github.com/repos/{org_name}/{repo_name}/issues/{new_number}", | |
| json={"milestone": milestone_number, "labels": labels_names}, | |
| ) |
Metadata
Metadata
Assignees
Labels
No labels
Activity
Carreau commentedon Sep 17, 2024
Isnt' that covered by github merge queues now (https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue) – which I haven't tried so I might be wrong.
flying-sheep commentedon Sep 17, 2024
I want to make meeseeksbot fully automatic: on merge, it creates the backport PR and “hits the button” for it to get merged.
I think a merge queue wouldn’t change this, instead of hitting automerge, someone would have to hit autoqueue.
Carreau commentedon Sep 18, 2024
👍