kowainik / hit-on

:octocat: Kowainik Git Workflow Helper Tool
https://kowainik.github.io/projects/hit-on
Mozilla Public License 2.0
77 stars 13 forks source link

[RFC] `hit new` without arguments should choose the only assigned issue and create a branch for it #116

Closed chshersh closed 4 years ago

chshersh commented 5 years ago

Often enough, I have only one issue assigned to me in a project. In that case, my workflow looks like this:

  1. hit issue to see the issue number
  2. hit new 1234 to create a branch.

I propose to patch hit new command, so it automatically chooses the issue if you have only one issue assigned to you. With the following handling of exceptional cases:

Inside this interactive process, it should be possible to write a raw text of the branch name if you don't want to attach the branch to an issue.

vrom911 commented 4 years ago

@chshersh Do you think that it makes sense to have this behaviour for the new command only when --me option is specified? Or it is okay to do so without this option?

chshersh commented 4 years ago

@vrom911 I think it's a good idea to be more explicit 👍 I agree with the --me option