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: ignore stale checks from closed PRs #352

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jtribble
Copy link
Contributor

This ensures that checks are only considered if they match an open PR. This is useful for scenarios when a branch name changes but the commit SHA stays the same.

Screenshot 2024-09-20 at 2 00 47 PM

Copy link
Member

@dghubble dghubble left a comment

Choose a reason for hiding this comment

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

In other orgs, this action runs alongside push triggered check runs, which don't have a PR associated with them. So I don't think the pull_requests field is always present. I think this would error in those cases and needs a condition to say if there is no pull_request continue as usual.

You can probably check this by making a push triggered change and looking at the run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants