Yashasv-Prajapati / Docify

5 stars 2 forks source link

fix(api): dependency checker route handler #121

Closed Karanraj06 closed 2 months ago

Karanraj06 commented 2 months ago

fixes /api/dependency-checker works for python projects moved bash scripts to python/dependency-checker

linear[bot] commented 2 months ago
CS3-135 [Fix] Dependency Checker 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 dependency-checker action the repo based on the project type (java or python) 4. Add the dependencies' list 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 dependency-checker action using the type of project from the scripts we have outside the ./client folder 4. Move this dependencies' list txt file to repo's .docify-assets directory, make if not already created. Handle make if not already created or simply move graciously. You can create a separate script(sh) for it if you want. 5. Use the commit.sh script and pass on required parameters to commit and push changes to user's github.