Skip to content

Commit

Permalink
Bug fixes for pull requests (#62)
Browse files Browse the repository at this point in the history
Closes major bug #61 and minor bug #58
  • Loading branch information
lawndoc authored Feb 8, 2023
1 parent f62001e commit 88923d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]]; then
command+=$(arg '--source %s' "${GITHUB_WORKSPACE}")

base_sha=$(git rev-parse "refs/remotes/origin/${GITHUB_BASE_REF}")
head_sha=$(git rev-parse "refs/remotes/pull/${GITHUB_REF_NAME}")
command+=$(arg '--log-opts "%s"' "--no-merges --first-parent ${base_sha}^..${head_sha}")
head_sha=$(git rev-list --no-merges -n 1 refs/remotes/pull/${GITHUB_REF_NAME})
command+=$(arg '--log-opts "%s"' "--no-merges --first-parent ${base_sha}...${head_sha}")
else
command+=$(arg '--source %s' "${INPUT_SOURCE}")
command+=$(arg '--no-git' "${INPUT_NO_GIT}")
Expand Down

0 comments on commit 88923d9

Please sign in to comment.