Skip to content

How to auto merge pr from fork #26874

Answered by kingthorin
Janglee123 asked this question in Actions
Discussion options

You must be logged in to vote

Assuming you mean your “first-bit” repo then you need to use pull_request_target as your on event (vs. pull_request).

For your checkout you want to make sure you checkout the PR content:

    - name: Checkout
      uses: actions/checkout@v2
      with:
        ref: ${{github.event.pull_request.head.ref}}
        repository: ${{github.event.pull_request.head.repo.full_name}}

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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