Skip to content

Changed files behavior in v44 #2018

Answered by jackton1
Naros asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Naros, yes you can base the comparison on only the commits in the PR by setting the ref input of the checkout action to prevent checking out the merge commit

See: https://github.com/actions/checkout/blob/main/README.md#checkout-pull-request-head-commit-instead-of-merge-commit.

- uses: actions/checkout@v4
  with:
    ref: ${{ github.event.pull_request.head.sha }}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jackton1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants