Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve JB reporting flow #2497

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@

name: JetBrains Bug report ፨
description: "File a bug report for any of the JetBrains IDEs: IntelliJ, Goland, WebStorm, etc."
title: "bug: "
labels:
- bug
- repo/jetbrains
projects:
- sourcegraph/381
body:
- type: markdown
attributes:
Expand Down
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/jetbrains_feedback.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: '❌ Please do not use GitHub issues for feedback or feature requests'
about: 'We value your input! Head over to our Community Forum to share feedback and feature requests - it helps us make Cody better.'
title: ''
labels: 'customer-feedback'
assignees: ''

---

# We do not accept feedback or feature requests on GitHub

Instead, please post your requests to the [Community Forum](https://community.sourcegraph.com/new-topic?title=&body=&category=cody&tags=feedback,jetbrains).
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/jetbrains_feedback.yml

This file was deleted.

77 changes: 0 additions & 77 deletions .github/ISSUE_TEMPLATE/prd-issues.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ class CodyErrorSubmitter : ErrorReportSubmitter() {
val baseUrl =
"https://github.com/sourcegraph/jetbrains/issues/new" +
"?template=bug_report.yml" +
"&labels=bug,repo/jetbrains" +
"&projects=sourcegraph/381"
"&labels=bug,repo/jetbrains"

val title = throwableText?.let { "&title=${encode(getTitle(it))}" } ?: ""
val about = "&about=${encode(getAboutText(project).get())}"
Expand All @@ -66,8 +65,7 @@ class CodyErrorSubmitter : ErrorReportSubmitter() {
}

private fun getTitle(throwableText: String): String {
val title = trimPostfix(throwableText.lines().first(), 128)
return "bug: $title"
return trimPostfix(throwableText.lines().first(), 128)
}

private fun getAboutText(project: Project?): CompletableFuture<String> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class CodyErrorSubmitterTest : BasePlatformTestCase() {
encodedUrl.startsWith(
"https://github.com/sourcegraph/jetbrains/issues/new?template=bug_report.yml"))
assertTrue(encodedUrl.contains("&labels=bug,repo/jetbrains"))
assertTrue(encodedUrl.contains("&projects=sourcegraph/381"))
assertFalse(encodedUrl.contains("&title="))
}

Expand Down
Loading