From a64f5e08e6fe6726a2c45a0f0344703029f0dc25 Mon Sep 17 00:00:00 2001 From: Dzmitry Neviadomski Date: Tue, 9 Feb 2021 03:11:08 +0300 Subject: [PATCH] Use GitHub issues for reporting feedback. --- Application/AppController.m | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Application/AppController.m b/Application/AppController.m index 9c21ef211..c104d4b4f 100644 --- a/Application/AppController.m +++ b/Application/AppController.m @@ -352,9 +352,18 @@ { NSString *version = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]; - NSString *url = @"https://kode54.net/contact"; - - [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/%@", url, version]]]; + NSArray *query = @[ + [NSURLQueryItem queryItemWithName:@"labels" value:@"bug"], + [NSURLQueryItem queryItemWithName:@"template" value:@"bug_report.md"], + [NSURLQueryItem queryItemWithName:@"title" + value:[NSString stringWithFormat:@"[Cog %@] ", version]] + ]; + NSURLComponents *components = + [NSURLComponents componentsWithString:@"https://github.com/losnoco/Cog/issues/new"]; + + components.queryItems = query; + + [[NSWorkspace sharedWorkspace] openURL:components.URL]; } - (void)initDefaults