Skip to content

carmon/til-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

til-utils: transform any github repository in a static blog

til-utils is a Github application that aims to turn any Github repository into a static blog.


NOTE

After checking out that the github app API does not support creating a repository from a template yet, I decided to split this current state of the code and make a new branch using the oauth app API, this will affect the planned user flow of the app, so there could be more differences in code in the future. Thanks for understanding.


Currently working version

  • Web client for authentication web flow with github oauth app
  • New static blog repository is generated with experimental github templates API

Ideal Case: Github APP Webhooks

Current webhooks listen for PUSH events.

Whenever PUSH event happens, the first action will be to check target blog repo config (that is, config.json file in the root folder of the repositoty). For more information check installation folder.

When that config is loaded, events will check if a post where added to editing branch or production.

If editing:

  • Use github app API to regenerate dates.json file and push it in a commit to branch
  • Make a pull request from editing to production

If production:

  • Make a twitter notification for each added post

Next steps

  • Generate a handler for a github app installation hook

Releases

No releases published

Packages

No packages published

Languages