rigflo icon indicating copy to clipboard operation
rigflo copied to clipboard

User can push saved project to a github repo

Open jamesscaggs opened this issue 4 years ago • 2 comments

jamesscaggs avatar Nov 07 '20 16:11 jamesscaggs

  • [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.

jamesscaggs avatar Nov 10 '20 15:11 jamesscaggs

V2:

  • [ ] User can save updates to repo
  • [ ] User can save YAML file to repo

jamesscaggs avatar Nov 10 '20 17:11 jamesscaggs