Skip to content

Commit df76f0b

Browse files
committed
feat: migrate to custom issue reporting
1 parent 140ba05 commit df76f0b

File tree

1 file changed

+4
-23
lines changed
  • app/src/main/java/com/viscouspot/gitsync/util

1 file changed

+4
-23
lines changed

app/src/main/java/com/viscouspot/gitsync/util/Logger.kt

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -131,29 +131,10 @@ object Logger {
131131
}
132132

133133
private fun createGitHubIssueIntent(): Intent {
134-
var url = "https://github.com/ViscousPot/GitSync/issues/new?"
135-
url += "body="
136-
url += urlEncode("""
137-
<!-- Fill out the error details below -->
138-
139-
#### Have you looked at the wiki?
140-
<!-- e.g. N -->
141-
142-
#### Can you reproduce this issue reliably?
143-
<!-- e.g. N -->
144-
145-
#### Which feature is affected?
146-
<!-- e.g. auth -->
147-
148-
#### What auth method are you using?
149-
<!-- e.g. oauth -->
150-
151-
<!-- -------- STOP HERE -------- -->
152-
153-
---
154-
155-
${generateLogs()}
156-
""".trimIndent())
134+
var url = "https://issue-wrapper.netlify.app/?q=*{%22appIconUrl%22:%22https://raw.githubusercontent.com/ViscousPot/GitSync/master/app/src/main/res/mipmap-xxxhdpi/ic*_launcher*_round.webp%22,%22appName%22:%22GitSync%22,%22repoPath%22:%22ViscousPot/GitSync%22,%22questions%22:[%22Do_you_have_steps_to_reproduce_this_issue_reliably*Q%22,%22Which_app_feature_is_affected*Q%22,%22Which_auth_method_are_you_attempting_to_use*Q%22,%22Is_there_anything_that_may_be_non-standard_in_your_setup_or_config*Q%22]}~"
135+
url += "&logs="
136+
url += urlEncode(generateLogs())
137+
url.take(2048)
157138
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(url))
158139
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
159140

0 commit comments

Comments
 (0)