Skip to content
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

fix: support pull_request events that are already merged #92

Merged
merged 3 commits into from
Sep 6, 2023

Conversation

Hiraqui
Copy link
Contributor

@Hiraqui Hiraqui commented Jun 15, 2023

Fixes #83

When a workflow is running with the pull_request event, and the change is already merged on the main branch, the BASE SHA is incorrectly recovered with git merge-base. This is because the best common ancestor to the current commit is itself, so you always end up with the same commit SHA on BASE and HEAD.

This propose following the regular path to fetch the BASE SHA if it is a pull_request event and its payload indicates it has already been merged.

Copy link
Collaborator

@meeroslav meeroslav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR

@meeroslav meeroslav enabled auto-merge (squash) August 8, 2023 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants