pwntester / octo.nvim

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

fix: setting title for pr create #446

Closed joshmedeski closed 11 months ago

joshmedeski commented 11 months ago

Describe what this PR does / why we need it

Fixes the issue where the PR title doesn't get populated on create.

Does this pull request fix one issue?

Fixes #444

Describe how you did it

If the last commit doesn't have body, the logic skips setting the title. So I adjusted it to always set the title if the commit has a description (even without a body).

Describe how to verify it

  1. Create a commit without a body (just a title)
  2. Create a PR with Octo
  3. The "Enter title:" input will be populated with the commit title