Team Spartan Cookies & Milk Forums
Starfall Github Integration - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Feedback (https://teamscm.co.uk/forum-9.html)
+--- Forum: Suggestions and improvements (https://teamscm.co.uk/forum-11.html)
+--- Thread: Starfall Github Integration (/thread-1256.html)

Pages: 1 2


Starfall Github Integration - rouing - 17-08-2015

I would like the ability to link my SF Folders, public and local, to a github repository. This would allow me to keep track of changes and implement them in a better workflow.


RE: Starfall Github Integration - Person8880 - 17-08-2015

That would essentially require Git for GMod. Possible, but a bit of work.


RE: Starfall Github Integration - SuperPlayer - 17-08-2015

I like this idea. Would be good if you have shared projects and someone finds an error but you cant get in game to fix. So you could do it via GitHub. This would be awesome!
+1 from me


RE: Starfall Github Integration - Person8880 - 17-08-2015

Do bear in mind, the likelihood of this is very low. There's not just full Git support required, but you need to authenticate with GitHub in order to use it. GMod hardly has a sufficient method to do so, or to store your OAuth tokens securely on the server, which it would have to do.


RE: Starfall Github Integration - SuperPlayer - 17-08-2015

What would be about getting just the data/file from a link, in this case a GitHub repository or just one text file in a repository , and putting it into a string and then requering it like dependencys? In this case no authentification would be needed. Not sure if this would work.


RE: Starfall Github Integration - Person8880 - 17-08-2015

That would work only as long as GitHub's front facing raw file access is the same as what it expects. Basically, it would be a huge hack and not really worth it.

Not to mention the fact that there would be no real way to verify if the GitHub link is pointing to an actual Starfall text file or some other file that's .txt but something else and thus a waste of bandwidth. This kind of thing is full of issues that aren't easily solved under GMod's constraints.


RE: Starfall Github Integration - rouing - 17-08-2015

github has an API for these kinds of things. You would probably need a .dll to do this. Using a dll you could run the git push commands and clone as needed.


RE: Starfall Github Integration - Person8880 - 17-08-2015

They have a secure API, which was one of my problem points. You'd be trusting the server (and by extension, me) to have access to your GitHub account. I don't want that kind of liability.


RE: Starfall Github Integration - rouing - 17-08-2015

I trust you. I have no reason not to trust you. The thing is, if i didnt, I wouldnt log on github from the server.


RE: Starfall Github Integration - Person8880 - 17-08-2015

The problem is, I cannot guarantee that any data on the server is 100% (within reason) secure and away from prying eyes. Without that there's no way I can go about storing people's access to their accounts.