Yashasv-Prajapati / Docify

6 stars 4 forks source link

Fixed code coverage api handler #124

Closed AGlade7 closed 7 months ago

AGlade7 commented 7 months ago

Fixed some issues related to api handler for code coverage.

linear[bot] commented 7 months ago
CS3-134 [Fix] Code Coverage API handler

Currently the API handler is not doing much, the expected things it needs to perform are 1. Start a docker container 2. Clone the user's repository which he selected 3. Perform UML generate action the repo based on the project type (java or python) 4. Add the UML image to repo's .docify-assets folder 5. Commit and push to user's github on docify branch The steps needed to do that are 1. Start a docker container using dockerode 2. Clone the repo using the commands here -> [CS3-79](https://linear.app/t05-cs305/issue/CS3-79/github-authorization-private-repositories#comment-ad3db8c5) 3. Perform Code Coverage action using the type of project from the scripts we have outside the ./client folder 4. Move this Code Coverage table to repo's .docify-assets directory, make if not already created. Handle make if not already created or simply move graciously. 5. Use the commit.sh script and pass on required parameters to commit and push changes to user's github.