Use GitHub issues for reporting feedback.

CQTexperiment
Dzmitry Neviadomski 2021-02-09 03:11:08 +03:00
parent 6fe7c059db
commit a64f5e08e6
1 changed files with 12 additions and 3 deletions

View File

@ -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<NSURLQueryItem *> *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