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!
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!