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.
- Web client for authentication web flow with github oauth app
- New static blog repository is generated with experimental github templates API
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
toproduction
If production
:
- Make a twitter notification for each added post
- Generate a handler for a github app installation hook