Skip to content

fix: Checkout PR HEAD commit instead of merge commit #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 19, 2024

Conversation

shenxianpeng
Copy link
Contributor

self test commit-check action

@shenxianpeng
Copy link
Contributor Author

It should be display failure summary in https://github.com/commit-check/commit-check-action/actions/runs/11402894009?pr=72

but right now it displays success.

@shenxianpeng shenxianpeng added the bug Something isn't working label Oct 18, 2024
@shenxianpeng
Copy link
Contributor Author

It should be display failure summary in https://github.com/commit-check/commit-check-action/actions/runs/11402894009?pr=72

but right now it displays success.

Checkout pull request HEAD commit instead of merge commit can fix about issue

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

https://github.com/actions/checkout?tab=readme-ov-file#checkout-pull-request-head-commit-instead-of-merge-commit

@shenxianpeng shenxianpeng changed the title update .gitignore file fix: Checkout PR HEAD commit instead of merge commit Oct 19, 2024
@shenxianpeng shenxianpeng merged commit f0c5269 into main Oct 19, 2024
1 check passed
@shenxianpeng shenxianpeng deleted the update-ignore branch October 19, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant