Open actual-saurabh opened 6 years ago
Scratch that, let the user input the repository URL & parse from there
Use the repository URL to find out the type of repo this is and then setup GitLab, GitHub or BitBucket credentials accordingly.
Therefore, this would be the starting point.
[ ] In the UI, after authentication (#2), fetch & display a list of repositories
[ ] Github https://developer.github.com/v3/repos/#list-user-repositories
[ ] Bitbucket https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D
[ ] Gitlab https://docs.gitlab.com/ce/api/projects.html,
[ ] On, repository selection, check if plugin or theme to set up default values which the user may override via a form to generate https://github.com/BaapWP/wp-yak/blob/e9f7618aa35b967b00eacfb4fdd26e071532ad4a/wp-deploy-config/repositories.php#L12-L36