Skip to content
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

Automerge option #132

Open
flying-sheep opened this issue Sep 17, 2024 · 3 comments
Open

Automerge option #132

flying-sheep opened this issue Sep 17, 2024 · 3 comments

Comments

@flying-sheep
Copy link

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.

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},
)

@Carreau
Copy link
Contributor

Carreau commented 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
Copy link
Author

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
Copy link
Contributor

Carreau commented Sep 18, 2024

I think a merge queue wouldn’t change this, instead of hitting automerge, someone would have to hit autoqueue.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants