Support github.base_ref for pull_request_review

currently github.base_ref can be used only on pull_request workflow.
It will be great if we can also access it on pull_request_review events

Hi @nitzanashi,

Glad to see you in Github Community Forum!

The two events have different Github Context. For ‘pull_request_review’ event, base ref can be got from ${{ github.event.pull_request.base.ref }}.

You can add below code in workflow to export Github Context details:

      - name: Dump GitHub context
          GITHUB_CONTEXT: ${{ toJson(github) }}
        run: echo "$GITHUB_CONTEXT"