How to post issues to GitHub? [Lua]
#1
Posted 12 October 2016 - 02:26 PM
I want to make it so when my OS crashes it will automatically report the error and version to GitHub.
Thanks!
- House
#2
Posted 12 October 2016 - 02:56 PM
First, you need to authenticate the server. You can do this:
- via OAuth: https://developer.github.com/v3/oauth/
- or with a user token: https://github.com/settings/tokens/new
- or with a password: https://developer.gi...-authentication
Then you simply call the create issue endpoint:
https://developer.gi...create-an-issue
#3
Posted 12 October 2016 - 03:11 PM
Also, the user should know that it will be reported.
#4
Posted 12 October 2016 - 07:44 PM
Sewbacca, on 12 October 2016 - 03:11 PM, said:
Also, the user should know that it will be reported.
Well, you would simply not post the issue if an open issue exists with the same name/error. It is difficult, but effective against repeat automatic bug reports.
#5
Posted 12 October 2016 - 09:23 PM
Hbomb_79, on 12 October 2016 - 07:44 PM, said:
Sewbacca, on 12 October 2016 - 03:11 PM, said:
Also, the user should know that it will be reported.
Well, you would simply not post the issue if an open issue exists with the same name/error. It is difficult, but effective against repeat automatic bug reports.
Okay, but what is, if someone edits the code and occur variable errors like error(tostring({}))?
#6
Posted 12 October 2016 - 10:09 PM
Sewbacca, on 12 October 2016 - 09:23 PM, said:
That's simple. If the MD5 of the file doesn't match, don't post the issue because the user has modified it or are using an older version.
#7
#8
Posted 13 October 2016 - 11:55 AM
Sewbacca, on 13 October 2016 - 11:53 AM, said:
It would be a single command (under Linux) to md5 all files in a directory, let me check my zsh history for the command.
EDIT: The command is: find . -type f -exec md5sum {} \; > dir.md5
Edited by Admicos, 13 October 2016 - 11:56 AM.
#9
Posted 13 October 2016 - 11:56 AM
Admicos, on 13 October 2016 - 11:55 AM, said:
Sewbacca, on 13 October 2016 - 11:53 AM, said:
It would be a single command (under Linux) to md5 all files in a directory, let me check my zsh history for the command.
#11
#12
Posted 16 October 2016 - 07:19 PM
Edited by H4X0RZ, 16 October 2016 - 07:20 PM.
#13
Posted 16 October 2016 - 08:18 PM
H4X0RZ, on 16 October 2016 - 07:19 PM, said:
The idea here is to prevent someone's stupidity from auto-reporting errors they created, not to prevent against malicious intent. We've already established that the github account will be fully accessible by anyone who looks at the code.
#14
Posted 16 October 2016 - 09:52 PM
KingofGamesYami, on 16 October 2016 - 08:18 PM, said:
H4X0RZ, on 16 October 2016 - 07:19 PM, said:
The idea here is to prevent someone's stupidity from auto-reporting errors they created, not to prevent against malicious intent. We've already established that the github account will be fully accessible by anyone who looks at the code.
Oh, okay. I should read the whole post next time. Sorry :/
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users