editor icon indicating copy to clipboard operation
editor copied to clipboard

Expose Version Control REST API endpoints to allow for CI automation

Open yaustar opened this issue 3 years ago • 6 comments

For some workflows where developers have code in separate version control repo, having the API endpoints would really help with automation of workflows.

  • [ ] Create checkpoints
  • [ ] Switch branches
  • [ ] Merge branches - option to merge if there are no conflicts
  • [ ] Create branches
  • [ ] Close/Open branches
  • [ ] Get checkpoints from a branch
  • [ ] Get checkpoint data (message, changed files etc)

yaustar avatar Aug 11 '21 16:08 yaustar

From #539

  • Fetch list of projects with ids
  • Authenticate a user and get an access token in return
  • Make checkpoints
  • Switch branches
  • Merge branches

yaustar avatar Oct 28 '21 10:10 yaustar

Related thread: https://forum.playcanvas.com/t/switching-branches-via-nodejs/22446

yaustar avatar Nov 03 '21 17:11 yaustar

Thinking on this a little more:

  • Create checkpoints
  • Switch branches
  • Merge branches - option to merge if there are no conflicts
  • Create branches
  • Close/Open branches
  • Get checkpoints from a branch
  • Get checkpoint data (message, changed files etc)

Is there anyway we can do a merge preview where a 'diff' could be downloaded? Could we utilise the PlayCanvas Editor diff viewer to be able to load the diff file directly?

yaustar avatar Mar 18 '22 11:03 yaustar

Hi, I think it makes sense to expose also a create project endpoint to allow a full cicle from creating/editing/downloading the app. Thanks in advance

dfrancos-hub avatar May 22 '23 09:05 dfrancos-hub

@dfrancos-hub Can you create that as a new request please as that endpoint isn't part of version control :)

yaustar avatar May 22 '23 17:05 yaustar

From #539

  • Fetch list of projects with ids
  • Authenticate a user and get an access token in return
  • Make checkpoints
  • Switch branches
  • Merge branches

"Fetch list of projects with ids" should probably not be part of this Version Control task but rather it's own issue.

Allowing GET https://playcanvas.com/api/projects to return a list of all projects accessible by the given user-/organization-token.

This would be useful outside of the Version Control system.

pensan avatar Jul 05 '23 12:07 pensan