pwntester / octo.nvim

Edit and review GitHub issues and pull requests from the comfort of your favorite editor
MIT License
2.24k stars 124 forks source link

[feature request] create PR in draft state #553

Open markfeinstein opened 3 weeks ago

markfeinstein commented 3 weeks ago

Issue Description

Type: feature request

I would like to be able to create PRs in a draft state.

Describe what happened (or what feature you want)

The only option currently available seems to be creating a PR in the submitted/ready-to-review state. It would be great to be able to create a PR as a draft as well.

Describe what you expected to happen

I would like to be able to use Octo pr draft or a similar command to create a draft without having an already open PR, so that I can fill out the PR template and make sure automated checks are passing.

How to reproduce it (as minimally and precisely as possible)

  1. Run Octo pr draft in a branch that doesn't have an open PR

Tell us your environment

In my environment, submitting a PR automatically alerts team members to review it and triggers automated checks for the PR. The checks include linting, testing, and validation that the PR template was properly filled out. Since the PR is submitted before I've had a chance to fill out the template or check the status of the automated checks, this frequently results in people being alerted for and reviewing a PR with missing descriptions or failing checks.

austinbutler commented 3 weeks ago

It's :Octo pr create draft.

markfeinstein commented 3 weeks ago

Thanks @austinbutler.

This gets me most of the way there, it lets me create a draft, but doesn't seem to give me a chance to fill out the PR template before the draft is created. Which results in some of the checks failing before I can update the PR description with no obvious way to re-run them from Octo.