How to trigger a rerun of a failed PR check when noy having write permissions

There are software developers in our team which don’t have write access to the main repository. There are flaky tests in our system which once in a while fail. Therefore i need too find a workaround for them to rerun the job.

I found a way to trigger jobs by issue comments:

name: Build and test PR
if: github.event_name == ‘pull_request’ || (github.event_name == ‘issue_comment’ && github.event.comment.body == ‘retest’)

The problem is that github doesn’t understand that this check is intended for checking the pr and does not update the status of the PR according tot the status of this job. How can i fix this? I have no problems with writing python code and pygithub. If somoeone could give me a pointer here, this would be nice

There is another solution of adding an empty commit. This is also not a good solution.

Is there a better solution for this?