Skip to content

Automerge option #132

@flying-sheep

Description

@flying-sheep

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions