Comment to PR on Push event

The pull request context contains the pull request issue number so actions triggered on PR create / update etc can comment back into the PR using this number.

Is there a way to comment back into the PR on a Push event? The context doesn’t appear to have this information and I’m not quire sure how I would go about getting it.

Use case would be action that runs on Push and sends data to STDOUT, would like to get this STDOUT back into the comment chain of the PR.

Found this -> https://github.community/t5/GitHub-Actions/GitHub-Actions-no-way-to-get-PR-number-on-push-event/td-p/23433

Seems not that great but answers my question.