When trying to find an existing comment or look for a signature, the bot only looks at the first 100 comments of the PR. This is because 100 is the default page size for PR comments returned by the GitHub API. As a result, if many comments are made before the bot comment, it will keep re-posting it. Additionally, if many comments are made before the signature itself, the bot will never find it.
Both attempts to find comments have been updated to continue asking for pages until all comments have been reviewed.
When trying to find an existing comment or look for a signature, the bot only looks at the first 100 comments of the PR. This is because 100 is the default page size for PR comments returned by the GitHub API. As a result, if many comments are made before the bot comment, it will keep re-posting it. Additionally, if many comments are made before the signature itself, the bot will never find it.
Both attempts to find comments have been updated to continue asking for pages until all comments have been reviewed.