rigflo
rigflo copied to clipboard
User can push saved project to a github repo
-
[x] Add button to toolbar
-
[x] Create cloudflare endpoint to make request to github
-
[x] Create function to request cloudflare endpoint
-
[x] Connect button handler
-
[x] Confirm repo is created
-
[ ] Update our existing post request from the express server /api/posts to initialize the repo with a readme so we have a reference to commit to. See here Need to modify our existing POST request and set auto_init=true in the body.
After initializing the repo
We have to do the following steps before we update the UI to confirm the repo was created:
- [ ] Create a tree (A Git tree object creates the hierarchy between files in a Git repository.)
- [ ] Create a blob / file (no SHA required)
- [ ] Create a commit (Tree SHA required)
- [ ] Create a reference (Commit SHA required)
- [ ] Create a Pull Request
- [ ] Merge the Pull Request
I have all of those requests saved in Postman already and will just need to wire them up.
V2:
- [ ] User can save updates to repo
- [ ] User can save YAML file to repo