Send to user to create a new GitHub problem with pre-populated error data

I would like my program to allow users to easily download errors with the same useful information for me as with their problem.

When the user clicks the "Report a bug" button, the browser will open, say, github.com/noamraph/dreampie/issues/new with information about their environment pre-filled.

Can this be done through GitHub?

+7
source share
2 answers

You can use vars for this.

https://github.com/isaacs/github/issues/new?title=foo&body=bar 
+11
source

This is possible, and you can even get your users to write an error directly from the application if you want to use the GitHub API.

Instead of opening a new tab or window, open it in your own application and send through it, collecting the necessary data and the generated logdump.

Through the GitHub API, you can create a problem and pre-fill the title and text with what you need to know.

Then return the response from the successful creation and notify yourself. Or browse the β€œProblems” tab in your repo, as usual, after you create it.

+2
source

All Articles