It seems that the addPullRequestReview mutation doesn't support DISMISS. I think this is a GitHub bug and not a problem in the action itself. But as a result the action is broken. You can check this with the following queries in https://docs.github.com/en/graphql/overview/explorer:
query get_pr_id {
repository(owner: "Ana06", name: "capa") {
pullRequest(number: 2) {
id
number
title
}
}
}

mutation add_review {
addPullRequestReview(input: {
pullRequestId: "MDExOlB1bGxSZXF1ZXN0NTk3NzMyNTAx",
event: REQUEST_CHANGES,
body: "I request changes!"}
) { clientMutationId }
}

mutation dismiss_review {
addPullRequestReview(input: {
pullRequestId: "MDExOlB1bGxSZXF1ZXN0NTk3NzMyNTAx",
event: DISMISS,
body: "I don't request changes!"}) {
clientMutationId
}
}

I reported it to GitHub 9 days ago. GitHub support has told me to use the dismisspullrequestreview mutation. They are still looking into it, so it might be that they fix addPullRequestReview to support DISMISS. Otherwise we could update the code to use dismisspullrequestreview, as it seems to be working properly. I can send a PR after #47 (to avoid merge conflicts).
It seems that the
addPullRequestReviewmutation doesn't supportDISMISS. I think this is a GitHub bug and not a problem in the action itself. But as a result the action is broken. You can check this with the following queries in https://docs.github.com/en/graphql/overview/explorer:I reported it to GitHub 9 days ago. GitHub support has told me to use the
dismisspullrequestreviewmutation. They are still looking into it, so it might be that they fixaddPullRequestReviewto supportDISMISS. Otherwise we could update the code to usedismisspullrequestreview, as it seems to be working properly. I can send a PR after #47 (to avoid merge conflicts).