From 6340d946dd762af84b65bb96c762dc24fa6bb8eb Mon Sep 17 00:00:00 2001 From: Anton Filimonov Date: Tue, 14 Jun 2022 22:02:19 +0200 Subject: [PATCH] fix: remove label from github issue url (#486) --- src/crash_handler/src/issuereporter.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/crash_handler/src/issuereporter.cpp b/src/crash_handler/src/issuereporter.cpp index 65725d9b..e617c8c8 100644 --- a/src/crash_handler/src/issuereporter.cpp +++ b/src/crash_handler/src/issuereporter.cpp @@ -58,9 +58,6 @@ static constexpr auto BugTemplate = "#### What did you do?\n\n\n" "#### What did you expect to see?\n\n\n" "#### What did you see instead?\n\n\n"; -static constexpr auto BugLabel = "type: bug"; -static constexpr auto CrashLabel = "type: crash"; - static constexpr auto ExceptionAskUserAction = "Ooops! Something unexpected happend. Create issue on Github?"; @@ -82,19 +79,15 @@ void IssueReporter::reportIssue( IssueTemplate issueTemplate, const QString& inf { QString body = DetailsHeader; - QString label; switch ( issueTemplate ) { case IssueTemplate::Bug: body.append( BugTemplate ); - label = BugLabel; break; case IssueTemplate::Crash: body.append( QString( CrashTemplate ).arg( information ) ); - label = CrashLabel; break; case IssueTemplate::Exception: body.append( QString( ExceptionTemplate ).arg( information ) ); - label = CrashLabel; break; } @@ -116,7 +109,6 @@ void IssueReporter::reportIssue( IssueTemplate issueTemplate, const QString& inf body.append( QString( LibraryVersionsFooter ).arg( qVersion(), TBB_runtime_version() ) ); QUrlQuery query; - query.addQueryItem( "labels", label ); query.addQueryItem( "body", body ); QUrl url( "https://github.com/variar/klogg/issues/new" );