From 3424e0eea64ef04767fbc5603950a9c838e447a3 Mon Sep 17 00:00:00 2001
From: Matiss Janis Aboltins <matiss@mja.lv>
Date: Sat, 14 Jan 2023 17:29:19 +0000
Subject: [PATCH] :speech_balloon:  change misleading automatic bug-report text
 (#453)

* :speech_balloon:  change misleading automatic bug-report text

* Add github issue link
---
 packages/loot-core/src/client/shared-listeners.js | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/packages/loot-core/src/client/shared-listeners.js b/packages/loot-core/src/client/shared-listeners.js
index 287a860f4..343a247d0 100644
--- a/packages/loot-core/src/client/shared-listeners.js
+++ b/packages/loot-core/src/client/shared-listeners.js
@@ -46,6 +46,8 @@ export function listenForSyncEvent(actions, store) {
       let notif = null;
       let learnMore =
         '[Learn more](https://actualbudget.github.io/docs/Getting-Started/sync#debugging-sync-issues)';
+      const githubIssueLink =
+        'https://github.com/actualbudget/actual/issues/new?assignees=&labels=bug%2Cneeds+triage&template=bug-report.yml&title=%5BBug%5D%3A+';
 
       switch (subtype) {
         case 'out-of-sync':
@@ -235,9 +237,7 @@ export function listenForSyncEvent(actions, store) {
           break;
         case 'apply-failure':
           notif = {
-            message:
-              "We couldn't apply that change to the database. This is a bug, " +
-              'and it has been reported.'
+            message: `We couldn't apply that change to the database. Please report this as a bug by [opening a Github issue](${githubIssueLink}).`
           };
           break;
         case 'beta-version':
@@ -246,9 +246,7 @@ export function listenForSyncEvent(actions, store) {
           break;
         default:
           notif = {
-            message:
-              'We had problems syncing your changes. This is a bug, ' +
-              'and it has been reported.'
+            message: `We had problems syncing your changes. Please report this as a bug by [opening a Github issue](${githubIssueLink}).`
           };
       }
 
-- 
GitLab