Skip to content

Changed files behavior in v44 #2018

Answered by jackton1
Naros asked this question in Q&A
Mar 27, 2024 · 1 comments · 1 reply
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 1 reply

Comment options

You must be logged in to vote
1 reply
@justanotheranonymoususer
Comment options

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
3 participants