Skip to content

Automerge option #132

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions