Skip to content

feat: add sg feedback command

Warren Gifford requested to merge wbezuide/sg/feedback-cmd into main

Created by: burmudar

This adds a sg feedback command which opens a new discussion page in the user browser with some prepopulated fields. After some rabbit holing I decided this to be the 'MVP'

Part of #25839 (closed)

  • Initially I wanted to launch the users editor but that gets messy since we can't just blindly trust $EDITOR to "do the right thing" when giving a file ie. some editors requires -w to be given so that the editor waits until the file is closed.

  • Using the Github API ... 🤦🏼

Next steps 👣 (in a separate PR)

  • add --feedback to all commands in sg in a similar way that sg analytics does it.
  • append diagnostic information? Might have to enhance sg doctor to create a CheckReport
  • append sg version

Test plan

Manual testing

Merge request reports

Loading