Re: [tw5] How does GitHub Saving Work (programming-wise)?

2021-02-11 Thread Jeremy Ruston
Hi Finn

The code that TW5 uses for saving to GitHub is fairly self contained in this 
file:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/savers/github.js
 


There are two HTTP requests: one to get the hash of the current file in the 
repo, and a second one quoting that hash to commit the change to the file.

Best wishes

Jeremy

> On 10 Feb 2021, at 22:59, Finn Lancaster  wrote:
> 
> Hello!
> 
> I have a question not directly related to TiddlyWiki, and probably better 
> suited to StackOverflow— how does GitHub saving in TW5 work? 
> I don’t need to know how to fill out the suitable inputs or setting it up in 
> TW, I would just like to know how TW uses the GitHub API and a mix of JS/HTML 
> etc to accomplish the updating of the GitHub repository with the Tiddler 
> edits. 
> 
> Thanks so much! 
> 
> Regards, 
>  Finn Lancaster 
>  
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/CALXL%2BrMaO8kr85JfjaAL_tdWowvZLULeTZcvc26g0TuFxpkjFw%40mail.gmail.com
>  
> .

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5A1B52DF-3D9C-49BB-B969-B097CA489B57%40gmail.com.


[tw5] How does GitHub Saving Work (programming-wise)?

2021-02-10 Thread Finn Lancaster
Hello!

I have a question not directly related to TiddlyWiki, and probably better
suited to StackOverflow— how does GitHub saving in TW5 work?
I don’t need to know how to fill out the suitable inputs or setting it up
in TW, I would just like to know how TW uses the GitHub API and a mix of
JS/HTML etc to accomplish the updating of the GitHub repository with the
Tiddler edits.

Thanks so much!

Regards,
 Finn Lancaster

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CALXL%2BrMaO8kr85JfjaAL_tdWowvZLULeTZcvc26g0TuFxpkjFw%40mail.gmail.com.