From 00102fb01e3e277f650aca9d0ed9687ab65d4d80 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Mon, 5 Aug 2024 08:43:56 +0000 Subject: [PATCH] feat(links): merge links lines together - need help and discussion (same link) - bug and new feature (same link) --- README.md | 6 ++---- examples/main/main.go | 6 ++---- gosplash_test.go | 6 ++---- internal/links/links.go | 6 ++---- internal/links/links_test.go | 6 ++---- 5 files changed, 10 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 6b2a07f..388ad09 100644 --- a/README.md +++ b/README.md @@ -36,10 +36,8 @@ Running version v1.1.1 built on 2021-07-14 (commit c892ef2) 📣 hello world -🔧 Need help? https://github.com/qdm12/gosplash/discussions/new -🐛 Bug? https://github.com/qdm12/gosplash/issues/new -✨ New feature? https://github.com/qdm12/gosplash/issues/new -☕ Discussion? https://github.com/qdm12/gosplash/discussions/new +🔧 Need help? ☕ Discussion? https://github.com/qdm12/gosplash/discussions/new +🐛 Bug? ✨ New feature? https://github.com/qdm12/gosplash/issues/new 💻 Email? quentin.mcgaw@gmail.com 💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12 ``` diff --git a/examples/main/main.go b/examples/main/main.go index 89404b4..570c32a 100644 --- a/examples/main/main.go +++ b/examples/main/main.go @@ -42,8 +42,6 @@ func main() { // 📣 new feature 🎉 -// 🔧 Need help? https://github.com/qdm12/gosplash/discussions/new -// 🐛 Bug? https://github.com/qdm12/gosplash/issues/new -// ✨ New feature? https://github.com/qdm12/gosplash/issues/new -// ☕ Discussion? https://github.com/qdm12/gosplash/discussions/new +// 🔧 Need help? ☕ Discussion? https://github.com/qdm12/gosplash/discussions/new +// 🐛 Bug? ✨ New feature? https://github.com/qdm12/gosplash/issues/new // 💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12 diff --git a/gosplash_test.go b/gosplash_test.go index 8e43f6f..3f6a7ae 100644 --- a/gosplash_test.go +++ b/gosplash_test.go @@ -59,10 +59,8 @@ func Test_MakeLines(t *testing.T) { //nolint:tparallel "", "📣 hello world", "", - "🔧 Need help? https://github.com/qdm12/gosplash/discussions/new", - "🐛 Bug? https://github.com/qdm12/gosplash/issues/new", - "✨ New feature? https://github.com/qdm12/gosplash/issues/new", - "☕ Discussion? https://github.com/qdm12/gosplash/discussions/new", + "🔧 Need help? ☕ Discussion? https://github.com/qdm12/gosplash/discussions/new", + "🐛 Bug? ✨ New feature? https://github.com/qdm12/gosplash/issues/new", "💻 Email? quentin.mcgaw@gmail.com", "💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12", }, diff --git a/internal/links/links.go b/internal/links/links.go index 571fada..2d8a443 100644 --- a/internal/links/links.go +++ b/internal/links/links.go @@ -9,10 +9,8 @@ func MakeLines(rootURL, user, repo string, emails []string, rootURL = strings.TrimSuffix(rootURL, "/") if rootURL != "" && user != "" && repo != "" { repoURL := rootURL + "/" + user + "/" + repo - lines = append(lines, "🔧 Need help? "+repoURL+"/discussions/new") - lines = append(lines, "🐛 Bug? "+repoURL+"/issues/new") - lines = append(lines, "✨ New feature? "+repoURL+"/issues/new") - lines = append(lines, "☕ Discussion? "+repoURL+"/discussions/new") + lines = append(lines, "🔧 Need help? ☕ Discussion? "+repoURL+"/discussions/new") + lines = append(lines, "🐛 Bug? ✨ New feature? "+repoURL+"/issues/new") } if len(emails) > 0 { diff --git a/internal/links/links_test.go b/internal/links/links_test.go index ec82965..94e8b42 100644 --- a/internal/links/links_test.go +++ b/internal/links/links_test.go @@ -23,10 +23,8 @@ func Test_MakeLines(t *testing.T) { user: "qdm12", repo: "gosplash", lines: []string{ - "🔧 Need help? https://github.com/qdm12/gosplash/discussions/new", - "🐛 Bug? https://github.com/qdm12/gosplash/issues/new", - "✨ New feature? https://github.com/qdm12/gosplash/issues/new", - "☕ Discussion? https://github.com/qdm12/gosplash/discussions/new", + "🔧 Need help? ☕ Discussion? https://github.com/qdm12/gosplash/discussions/new", + "🐛 Bug? ✨ New feature? https://github.com/qdm12/gosplash/issues/new", }, }, "emails": {