Skip to content

Commit 5bb31d6

Browse files
committed
updated feedback url
1 parent f545521 commit 5bb31d6

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

cmd/feedback.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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

1417
func FeedbackCmd(cfg *config.Config) *cobra.Command {
1518
cmd := &cobra.Command{
@@ -25,15 +28,15 @@ func FeedbackCmd(cfg *config.Config) *cobra.Command {
2528
}
2629

2730
func 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

cmd/submit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

cmd/submit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)