BetaHuhn / deploy-to-vercel-action

🎬▲ Deploy your project to Vercel using GitHub Actions. Supports PR previews and GitHub deployments.
https://mxis.ch
MIT License
141 stars 71 forks source link

fix: delete all existing comments #392

Closed applepiofmyeye closed 2 months ago

applepiofmyeye commented 2 months ago

The Issue

When in a monorepo set up where there are more than 1 projects to deploy, there is currently no solution to deploy multiple projects at once.

A possible solution currently would be to create multiple comments. However, the current DELETE_EXISTING_COMMENT only deletes the first comment found in a PR, meaning that other previous comments are not deleted.

This PR

This PR only changes the deleteComment function to delete all existing comments in a PR, instead of the first it finds.

(limitation: it is not the best solution to deploying multiple projects in a monorepo, but a temp solution)

I'm still very new to github actions, just felt like it made more sense. Let me know your thoughts!