xt0rted / pull-request-comment-branch

A GitHub Action to get the head ref and sha of a pull request comment
MIT License
87 stars 30 forks source link

head_ref for issue_comment event on PR wrong AFAIK #421

Open zdenekpizl-foxdeli opened 9 months ago

zdenekpizl-foxdeli commented 9 months ago

Greetings, when creating a PR, _headref gets expected value. On the contrary, when commenting on PR, the _headref is set to 'refs/remotes/origin/master' apparently. But I would expect the branch name or something like 'refs/pull/${{ github.event.issue.number }}/head'.

What did I get wrong? Thank you, ZP.