Skip to content

Support github.base_ref for pull_request_review #26006

Answered by weide-zhou
nitzanashi asked this question in Actions
Discussion options

You must be logged in to vote

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
        env:
          GITHUB_CONTEXT: ${{ toJson(github) }}
        run: echo "$GITHUB_CONTEXT"

Thanks

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants