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 ->

Seems not that great but answers my question.