sorenlouv / backport

A simple CLI tool that automates the process of backporting commits on a GitHub repo
https://github.com/sqren/backport/blob/main/docs/config-file-options.md
Apache License 2.0
241 stars 57 forks source link

[Feature Request]: support draft PRs #488

Closed ian-h-chamberlain closed 2 months ago

ian-h-chamberlain commented 6 months ago

Hi, I was wondering if it would be possible to add a simple boolean CLI flag / configuration to make backport PRs as drafts? I'd like to automate the process of creating the PR, but give users the chance to review the changes before automatically adding reviewers from CODEOWNERS and running CI, etc. We normally use draft PRs for this purpose in my organization.

From what I can tell, it would be a simple plumb-through to the PR API: https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#create-a-pull-request--parameters If you'd like, I can take a stab at implementing this but I'd probably need some pointers to where the parameters are built for creating a PR.

Thanks!