If the action is not triggered by a pull_request trigger, in some cases it's impossible to infer what the relevant PR is. In those cases the easiest solution could be to have an input option to provide a PR number that we want the action to post to.
Relevant comment from another issue: #250 (comment)