Open jantman opened 7 years ago
There are some tools aimed at anonymous GitHub issue reporting, but none of them seem to work the way I'd like.
So maybe the right/nice way to do this is:
https://github.com/jantman/gw2copilot/issues/new?title=foo&body=bar
that opens in a new window, and instruct the user to paste the body and attachments and open the issue.Optional, but preferred feature: use GitHub JS client library (gh3.js, github.js, octokat.js)... if the user has a GitHub account, open the issue with their account. If not, use my Lambda func to open it anonymously.
So it looks like the GitHub stuff is going to be more complicated... auth to GitHub requires a client_secret
for the app that needs to actually remain secret, so it can't be embedded anywhere in the public source. So I guess the only option is some sort of server (let's assume a Lambda func), that:
So on my end, I'll need to do tooling (likely based on webhook2lambda2sqs) to Terraform an API Gateway that just passes specified methods (GET, POST, etc.) to a lambda function and returns the result. Ideally something really generic.
Ok, screw it. Forget the automatic GitHub integration. Just provide instructions (including screenshot), a link to create an issue, a text area with the debug information and logs, and a link to a Lambda function that posts it if the user doesn't have a GitHub account.
related to #29
Need a simpler bug reporting button. Ideally this should provide the user with a popup that gives them a simple way to download/capture both the log output from the program (
~/.gw2copilot/logs/gw2copilot.log
) as well as the status page content and the browser console logs, and prompts them to create a screenshot. It should really just be a "here's a link to GitHub, or you can email me. Paste this, and include a screenshot.It seems like in terms of console logging, capturing console.log isn't sane. We'll need to replace console.log with another function that both logs to console, and logs to browser storage or something (and clear it on page load). Options for that: