File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ import (
99 "github.com/spf13/cobra"
1010)
1111
12- const feedbackBaseURL = "https://github.com/github/gh-stack/discussions/new?category=feedback"
12+ const (
13+ feedbackURL = "https://gh.io/stacks-feedback"
14+ feedbackFormURL = "https://gh.io/stacks-feedback-form"
15+ )
1316
1417func FeedbackCmd (cfg * config.Config ) * cobra.Command {
1518 cmd := & cobra.Command {
@@ -25,15 +28,15 @@ func FeedbackCmd(cfg *config.Config) *cobra.Command {
2528}
2629
2730func runFeedback (cfg * config.Config , args []string ) error {
28- feedbackURL := feedbackBaseURL
31+ targetURL := feedbackURL
2932
3033 if len (args ) > 0 {
3134 title := strings .Join (args , " " )
32- feedbackURL += "& title=" + url .QueryEscape (title )
35+ targetURL = feedbackFormURL + "? title=" + url .QueryEscape (title )
3336 }
3437
3538 b := browser .New ("" , cfg .Out , cfg .Err )
36- if err := b .Browse (feedbackURL ); err != nil {
39+ if err := b .Browse (targetURL ); err != nil {
3740 return err
3841 }
3942
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ func generatePRBody(commitBody string) string {
230230
231231 footer := fmt .Sprintf (
232232 "<sub>Stack created with <a href=\" https://github.com/github/gh-stack\" >GitHub Stacks CLI</a> • <a href=\" %s\" >Give Feedback 💬</a></sub>" ,
233- feedbackBaseURL ,
233+ feedbackURL ,
234234 )
235235 parts = append (parts , footer )
236236
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ func TestGeneratePRBody(t *testing.T) {
2626 commitBody : "" ,
2727 wantContains : []string {
2828 "GitHub Stacks CLI" ,
29- feedbackBaseURL ,
29+ feedbackURL ,
3030 "<sub>" ,
3131 },
3232 },
You can’t perform that action at this time.
0 commit comments