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

Random color on `label create` #560

Closed wd60622 closed 1 week ago

wd60622 commented 1 week ago

Issue Description

Type: feature request

Describe what happened (or what feature you want)

label create has there input boxes:

  1. Title
  2. Color
  3. Description

Where all are required. If color is empty then a "Color is invalid" shows up

Describe what you expected to happen

Would be convenient if a random color was picked!

Anything else we need to know?

Didn't see any information in the documentation and getting into the code now! If it already exists, please let me know!

See that it happens here https://github.com/pwntester/octo.nvim/blob/1f0029d5283443bad9a818fd7d9db253404bf8aa/lua/octo/commands.lua#L1432-L1449

And a random color will be picked with :Octo label create new-label but not with :Octo label create and empty Description