Hi! I am writing a simple bot that will run status checks when a comment (something like “@mybot build”) is made on a pull request.
I notice that when a workflow is triggered by issue_comment as the result of a comment being made on a pull request, github.ref is always refs/heads/master. What I really want is for the context to be the branch that the pull request is on so the status checks in the pull request will update accordingly.
Is this a bug? If this is expected behavior, then I guess I will need to use the Statuses API explicitly to get the pull request to update properly in response to a check being run as the result of a comment.